mysql> update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';mysql> flush privileges;mysql> quit;
特別提醒注意的一點是,新版的mysql數(shù)據(jù)庫下的user表中已經(jīng)沒有Password字段了,而是將加密后的用戶密碼存儲于authentication_string字段
mysql> update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';mysql> flush privileges;mysql> quit;
特別提醒注意的一點是,新版的mysql數(shù)據(jù)庫下的user表中已經(jīng)沒有Password字段了,而是將加密后的用戶密碼存儲于authentication_string字段