问题
I'm getting below error when I type in localhost/phpMyAdmin after starting apache and mysql server in Xampp in Windows 10.
Is there a way I can fix this issue?
MySQL said: Documentation
#2002 - No connection could be made because the target machine actively refused it.
The server is not responding (or the local server's socket is not correctly configured).
Connection for controluser as defined in your configuration failed.
回答1:
If you are using the Bitnami version of Xampp you will have issues with Windows 10. Download and install an older version from sourceforge.net and it should work. I used version 1.7.3 and so far so good. http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/
回答2:
I had the same problem but fixed it by replacing localhost
with 127.0.0.1
in the config.inc.php file.
来源:https://stackoverflow.com/questions/31752863/phpmyadmin-in-xampp-not-working-on-windows-10