How do I recover MySQL root password?

How do I recover MySQL root password?
Answer
To reset the root password for MySQL, follow these steps:
  1. Log in to your account using SSH. …
  2. Stop the MySQL server using the appropriate command for your Linux distribution: …
  3. Restart the MySQL server with the —skip-grant-tables option. …
  4. Log into MySQL using the following command:
  5. At the mysql> prompt, reset the password.
 

Tìm kiếm

Back
Top