-
問題描述:
在安裝過程中并沒有輸入密碼的選項仆潮,導(dǎo)致必須使用MySQL默認(rèn)的用戶名和用戶密碼愧哟,才能登錄靴庆。 -
解決方案
- 查看默認(rèn)賬戶和密碼讲逛,并使用其登錄MySQL
sudo vim /etc/mysql/debian.cnf
- 修改root賬戶
UPDATE user SETplugin='mysql_native_password' WHERE User='root';
FLUSH PRIVILEGES;
update mysql.user set authentication_string=password('password') where user='root'and Host = 'localhost';
參考: