1. 程式人生 > >伺服器上MySQL資料庫密碼忘了

伺服器上MySQL資料庫密碼忘了

不校驗授權的方式開啟MySQL程序
service mysqld start --skip-grant-tables &
重新設定新密碼
update mysql.user set password=PASSWORD(‘newpassword’) where User=‘root’;

詳細原文: https://www.cnblogs.com/hgj123/p/5279471.html