更改Joomla使用的MySQL驱动程序 [英] Change the MySQL driver used by Joomla
本文介绍了更改Joomla使用的MySQL驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我安装Joomla时, mysqli 是默认选项,因此我安装了mysqli驱动程序.
When I was installing Joomla, mysqli was the default option, so I installed with mysqli driver.
但是我客户端的数据库是mysqli.因此,当我将本地站点迁移到主机时,会出现以下错误:
But the database of my client is mysqli. So when i migrate my local site to the host, i get this error:
数据库连接错误(1):MySQL适配器'mysqli'不可用.
Database connection error (1): The MySQL adapter 'mysqli' is not available.
有人可以知道我如何更改/返回"mysql"驱动程序吗?因为我使用mysqli驱动程序在localhost中配置了所有Joomla网站.
Can someone know how I change/go back to 'mysql' driver? Because I configured all my Joomla sites in localhost with the 'mysqli' driver.
推荐答案
打开configuration.php并进行以下更改:
Open configuration.php and change this:
public $dbtype = 'mysqli';
对此
public $dbtype = 'mysql';
这篇关于更改Joomla使用的MySQL驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文