mysql數(shù)據(jù)庫可以登陸,但用grant命令創(chuàng)建用戶時(shí)提示錯(cuò)誤
3 回答

四季花海
TA貢獻(xiàn)1811條經(jīng)驗(yàn) 獲得超5個(gè)贊
大概初次安裝 root 沒設(shè)密碼吧?你先給 root 設(shè)個(gè)密碼再試試??捎眠@種方式設(shè)密碼:
use mysql;
update user set password=password('123456') where user='root';
flush privileges;
exit
重新用 root 登錄,密碼是123456
進(jìn)去后再用 grant 創(chuàng)建新用戶試試。
添加回答
舉報(bào)
0/150
提交
取消