1.mysql> use mysql;
2.mysql> update user set authentication_string=password("123456") where user='root'; ---123456要修改的密码
3.mysql> flush privileges;
4.mysql> quit
5.重新登录试试!
1.mysql> use mysql;
2.mysql> update user set authentication_string=password("123456") where user='root'; ---123456要修改的密码
3.mysql> flush privileges;
4.mysql> quit
5.重新登录试试!