天天看點

mysql擴充沒有開啟xampp,PHPMyAdmin Windows XAMPP缺少MySQL擴充問題

mysql擴充沒有開啟xampp,PHPMyAdmin Windows XAMPP缺少MySQL擴充問題

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.

mysql擴充沒有開啟xampp,PHPMyAdmin Windows XAMPP缺少MySQL擴充問題

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()