Database error in Hostgator

Hi All, hit this error when try to install Dolibarr in hostgator shared server.
Anyone can help to identify what is the problem?

Warning: mysqli::__construct() expects parameter 5 to be integer, string given in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 188

Warning: mysqli::select_db(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 169

Warning: DoliDBMysqli::error(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 442

Warning: mysqli::query(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 249

Warning: DoliDBMysqli::error(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 442

Warning: DoliDBMysqli::errno(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 422

Warning: DoliDBMysqli::errno(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 425

Warning: mysqli::query(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 249

Warning: DoliDBMysqli::error(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 442

Warning: DoliDBMysqli::errno(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 422

Warning: DoliDBMysqli::errno(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 425

Configuration Configuration file

Warning: mysqli::__construct() expects parameter 5 to be integer, string given in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 188

Warning: mysqli::select_db(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 169

Warning: DoliDBMysqli::error(): Couldn’t fetch mysqli in /home2/drgfly81/public_html/dolibarr/htdocs/core/db/mysqli.class.php on line 442

Save values …/conf/conf.php Ok
Reload all information from configuration file. Ok
Server connection (User drgfly81_10base) : localhost Ok
Database connection (User drgfly81_10base) : drgfly81_ERP Error

Check that database name “drgfly81_ERP” is correct.
If this name is correct and that database does not exist yet, you must check option “Create database”.
Go backward and correct wrong parameters.

Host Gator should be the same as most shared hosting providers.

  1. Open cPanel and scroll down to Databases.
  2. Select “phpMyAdmin”.
  3. Document all your MySQL database names, server/port (probably localhost:3306)
  4. Return to cPanel and open “MySQL Databases”.
  5. Scroll down to “MySQL Users” and create a new user/password then add it to the Dolibarr database.
  6. Back in cPanel, File Manager and review your settings in /dolibarr/htdocs/conf/conf.php

If everything works now, remove the old username.