mysql5.7 修改密码
先登陆:
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';