How do I find my MySQL root password Linux?

How do I find my MySQL root password Linux?
Answer
Recover your MySQL password
  1. Stop the MySQL server process with the command sudo service mysql stop.
  2. Start the MySQL server with the command sudo mysqld_safe –skip-grant-tables –skip-networking &
  3. Connect to the MySQL server as the root user with the command mysql -u root.
 

Tìm kiếm

Back
Top