mysql修改密码

[root@sun /]# mysql -uroot -p

Enter password: 

mysql> use mysql

mysql> grant all privileges on *.*  to 'root'@localhost identified by '123456';

mysql> flush privileges;

                  //下次登陆密码就是  123456


你可能感兴趣的:(mysql修改密码)