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 WordPress Web Developer, Front-end and 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.

Comments 4

    1. Post
      Author

      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

Leave a Reply

Your email address will not be published. Required fields are marked *