====================忘了mysql密碼,從網上找到的解決方案記錄在這里====================
結束當前正在運行的mysql進程
# /etc/init.d/mysql stop
用mysql安全模式運行並跳過權限驗證
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
用空密碼方式使用root用戶登錄 MySQL
# mysql -u root mysql
更新密碼
# update user set Password = PASSWORD('root') where User ='root';
刷新權限
# FLUSH PRIVILEGES;
退出
# quit