joomla Database Error: Unable to connect to the database:The MySQL adapter “mysqli” is not available

Glenn Blog, Glenn's Blog 4 Comments

We’re WordPress experts here, but we recently came accross the following error when migrating a client site to our hosting for them:-

joomla Database Error: Unable to connect to the database:The MySQL adapter "mysqli" is not available

Actually the fix turned out to be pretty simple. Open up the Joomla ‘configuration.php file and then:-

Change the following line:-


var $dbtype = 'mysqli';

to:-


var $dbtype = 'mysql';

If you are still have database issues after this fix then check that you are using the correct database name, database user name and password. Ensure that the user on the database is assigned to the database with all required privileges.

About the Author
joomla Database Error: Unable to connect to the database:The MySQL adapter "mysqli" is not available joomla Database Error: Unable to connect to the database:The MySQL adapter “mysqli” is not available 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced Web Designer / Web Developer (Webflow, WordPress, Weebly & Custom), Front-end / Back-end Developer & New Media Specialist, with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries, built up over a number of years.

  • I just found a similar post to resolve this issue here at http://www.scratchinginfo.com/solving-the-error-establishing-a-database-connectin-problem-in-wordpress. and then later I found this blog and it was helpful too. Thanks for sharing.

  • xang

    thank you for this share, saved me the trouble.

  • i did not find var $dbtype = ‘mysqli’; in the configuration.php there is no suc variable.. plzz help

    • Hi Upendra
      This is only one fix out of a number of possible issues. if the variable doesn’t exist in the ‘configuration.php’ file then please also check your database connection username and password in the same file – if any are incorrect then an error would be thrown. Failing that it’s probably a different issue to the one above.
      Best Regards
      Glenn