mysql扩展没有开启xampp,PHPMyAdmin Windows XAMPP缺少MySQL扩展问题

在新安装的Windows系统上,尝试手动安装Apache、PHP、MySQL和PHPMyAdmin时遇到MySQL扩展缺失的问题。即使切换到XAMPP也同样遇到错误。解决方法是找到PHP的配置文件php.ini,取消mysql扩展行前的分号,例如:extension=php_mysql.dll等。如果找不到php.ini,可以通过运行phpinfo()来定位文件位置。
摘要由CSDN通过智能技术生成

I've tried install Apache, PHP, MySQL, and PHPMyAdmin manually and got the error. Then tried XAMPP and still got the error this error with PHPMyAdmin:

The mysql extension is missing. Please check your PHP configuration. Documentation

I'm clueless of what the issue is. I've tried solutions on the web and none worked so far. This is a new Windows installation and I installed XAMPP on C:.

解决方案

Fairly simple fix. Find your PHP.ini file, and in it there will be a list of extensions. Look for the one that says mysql and take the ; off the front of the line.

;extension=php_mysql.dll

;extension=php_mysqli.dll

;extension=php_pdo_mysql.dll

If you don't know where your PHP.ini file resides, you can put this code in a script to find out:

phpinfo()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值