PHP扩展名:phpmyadmin中的MySQL
问题描述:
当我登录phpmyadmin时,它说我的PHP扩展名是:MySQL.
When I log into phpmyadmin it says that my PHP Extension is: MySQL.
我知道这需要更改为mysqli,但是我该怎么做?是我自己可以做的事情,还是需要我的Web主机更改的服务器配置设置?
I know this needs to be changed to mysqli but how do I do that? Is that something I can do myself or is it a server config setting that I need my web host to change?
答
要指示phpMyAdmin使用mysqli
扩展名,您必须在config.inc.php
To instruct phpMyAdmin to use mysqli
extension you have to add the following line to your config.inc.php
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysqli';
您不能从phpMyAdmin内部更改此设置.您可能需要让您的虚拟主机为您做到这一点.
You can not change this setting from inside phpMyAdmin. You'll probably have to ask your web host to do that for you.