FAQ: Change forgotten or lost MySQL root password
Question: I forgot root password for MySQL DBE. How to reset or recover it? PLEASE HELP! Answer: Below is simple algorithm to reset MySQL root password in Linux, FreeBSD, OpenBSD and other Unix like operating systems: 1. Stop MySQL server process by one of the following commands: # /etc/init.d/mysqld stop # killall -9 mysqld # kill `cat /mysql-data-directory/host_name.pid` # mysqladmin shutdown To check if mysqld is killed run “ps ax [...]
Read more →