PhpMyAdmin links to MySql error personal solution

  • 2020-03-31 19:58:40
  • OfStack

After installing wamp, there was an error when trying to link MySql with phpMyAdmin. The error is as follows:

PhpMyAdmin tried to connect to the MySQL server, but the server refused to connect. You should check the host, username, and password in config.inc. PHP and make sure that this information is consistent with the information given by the administrator of the MySQL server.

MySql reported the following error:

091224 1:43:18 InnoDB: start shutdown...
091224 1:43:19 InnoDB: Shutdown completed; Log sequence number 0 43655
091224 1:43:19 [Note] c:\wamp\mysql\bin\mysqld-nt.exe: Shutdown complete

091224 1:47:04 InnoDB: Started; Log sequence number 0 43655
091224 1:47:04 [Note] c:\wamp\mysql\bin\mysqld-nt.exe: ready for connections.
Version: '5.0.45-community-nt' socket: 'port: 3306 MySQL community Edition (GPL)



Search for a long time finally found a solution of their own, not necessarily universal. But it did solve my problem

Use DOS to navigate to the bin folder under the MySql folder and type

Start mysql-l localhost-u root-p

For okey, the above is for reference only

Related articles: