>> #在控制台上输入 bash$ mysql -u root mysql #用mysql客户程序 mysql> UPDATE user SET passw">
时间:2021-07-01 10:21:17 帮助过:5人阅读
>>>
#在控制台上输入
bash$ mysql -u root mysql
#用mysql客户程序
mysql> UPDATE user SET password=PASSword("new password") WHERE user='hunte';
mysql> FLUSH PRIVILEGES;
mysql> QUIT
<<<
>>>
#在控制台上输入
bash$ mysql -u root mysql
mysql> SET PASSword FOR hunte=PASSword('new password');
mysql> QUIT
<<<
>>>
#直接在控制台上输入
bash$ mysqladmin -u root "old password" "new password"
<<<