#Forgot root password
/usr/local/mysql/bin/mysqld_safe –skip-grant –tables & start
Mysql –u root to log in
#Change user password
Update mysql.user set password=PASSWORD(“111111” ) where user= "username";
The above is the MYSQL learning summary (8): the content of frequently asked questions. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!