Change the MySQL driver used by Joomla

2019-07-25 06:09发布

问题:

When I was installing Joomla, mysqli was the default option, so I installed with mysqli driver.

But the database of my client is mysqli. So when i migrate my local site to the host, i get this error:

Database connection error (1): The MySQL adapter 'mysqli' is not available.

Can someone know how I change/go back to 'mysql' driver? Because I configured all my Joomla sites in localhost with the 'mysqli' driver.

回答1:

Open configuration.php and change this:

public $dbtype = 'mysqli';

to this

public $dbtype = 'mysql';


标签: mysql joomla