XAMPP“模块‘mysqli’”已经加载”错误?

发布于 2024-09-01 19:58:59 字数 340 浏览 3 评论 0原文

如果 XAMPP 配置正确并且运行正常,就能够访问 phpmyadmin 并在本地服务器上执行 php 代码。今天早上启动 XAMPP 并启动 Apache 后,我收到一条消息:“模块‘mysqli’已加载。”

我无法登录 phpmyadmin - 我看到登录页面,但是当我单击“开始”时,我只是得到一个空白页面。我正在练习将表单提交到数据库中,一切正常,现在提交表单后返回一条消息:“连接失败:(2002)连接尝试失败,因为连接方在一段时间后没有正确响应,或建立的连接失败,因为连接的主机无法响应”

XAMPP 状态页面显示一切都已激活。我不记得做过任何配置更改或执行任何其他可能导致此问题的操作。

感谢任何输入。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

尐偏执 2024-09-08 19:58:59

我通过编辑 php.ini 并将这些行注释掉来修复此问题:

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

并在其位置键入此行:

extension=php_mysqli.dll

工作完美。

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.

薄凉少年不暖心 2024-09-08 19:58:59

禁用或注释 php.ini 中重复的 extension=mysqli

在此处输入图像描述

disable or comment duplicate extension=mysqli in your php.ini

enter image description here

笔芯 2024-09-08 19:58:59

打开您的 php.ini 文件并注释掉下面的重复行

扩展名=mysqli
;扩展=mysqli

Open your php.ini file and comment out the duplicate line below

extension=mysqli
;extension=mysqli

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文