MySQL5.7以下版本的數(shù)據(jù)庫密碼使用的是
mysql這個數(shù)據(jù)庫里的user表的passWord這個字段,
修改密碼只需:
1.update MySQL.user setpassword=password('root') where user='root' ;2.flush PRivileges;可是到了5.7版本,user表里就沒有了password這個字段了,
要想修改密碼則需要用authentication_string這個字段:
1.update MySQL.user set authentication_string=password('root') where user='root';
2.flush privileges;
共勉~
新聞熱點
疑難解答
圖片精選