XAMPP “module 'mysqli' already loaded” error?

匿名 (未验证) 提交于 2019-12-03 01:05:01

问题:

Had XAMPP configured and running properly, was able to access phpmyadmin and execute php code on the local server. This morning after starting XAMPP and starting Apache, I get a message saying: "module 'mysqli' already loaded."

I can't log into phpmyadmin- I see the login page, but when I click "go" I simply get a blank page. I was practicing submitting forms into a DB, everything was working fine, now after submitting the form a message comes back: "connect failed with: (2002) A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. "

The XAMPP status page shows everything as being activated. I don't remember making any config changes or doing anything else that could have caused this.

Appreciate any input.

回答1:

I fixed this by editing my php.ini and commenting these lines back out:

;extension=php_mysqli_mysqlnd.dll ;extension=php_mysqli_libmysql.dll 

and typing in this line in their place:

extension=php_mysqli.dll 

Worked perfectly.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!