After installing wamp, an error occurred when trying to use phpMyAdmin to connect to MySql. The error was as follows:
phpMyAdmin tried to connect to the MySQL server, but the server refused the connection. You should check the host, username, and password in config.inc.php and make sure they match those given by the administrator of the MySQL server.
The MySql error is as follows:
091224 1:43:18 InnoDB: Starting shutdown...
091224 1:43:19 InnoDB: Shutdown completed; log sequence number 0 43655
091224 1:43:19 [Note] c:wampmysqlbinmysqld-nt.exe: Shutdown complete
091224 1:47:04 InnoDB: Started; log sequence number 0 43655
091224 1:47: 04 [Note] c:wampmysqlbinmysqld-nt.exe: ready for connections.
Version: '5.0.45-community-nt' socket: '' port: 3306 MySQL Community Edition (GPL)
After searching for a long time, I finally found a solution of my own, which may not be universal. However, my problem was indeed solved
Use DOS to locate the bin folder under the folder where MySql is located and type
start mysql -l localhost -u root -p
That’s it, the above is for reference only