How do I find MySQL username and password?

How do I find MySQL username and password?
Answer
How to retrieve MySQL root password
  1. Log in as root into your server through SSH (eg: puTTY/terminal/bash). Alternatively, run the commands that follow as su or sudo as root user. …
  2. Navigate to /etc/mysql /cd /etc/mysql.
  3. View the file my. cnf either using the command cat or use any text editing software (vi/vim/nano).
 

Tìm kiếm

Back
Top