1

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

Even after uninstalling wamp and then reinstalling it's showing the same error.

1 Answer 1

1

You can try connecting via the command-line interface using the username and password you expect; if that doesn't work then I presume you'll need to reset your password.

The MySQL manual has detailed instructions for resetting a lost root password.

Generically, those instructions are:

  1. Start MySQL with the --skip-grant-tables option
  2. Connect via the command line client with mysql (or the Start Menu program that corresponds to the command line client).
  3. Run FLUSH PRIVILEGES to load the privilege table
  4. Reset the password with a command like SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass'); adjusting the username, host, and password as needed.
  5. Stop and re-start the MySQL server.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.