先登陆:
mysql -uroot -p
再用sql语句修改
mysql> update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
先登陆:
mysql -uroot -p
再用sql语句修改
mysql> update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
转载于:https://www.cnblogs.com/southbean/articles/9923195.html