MySQL 更改root密码

c:>mysql -u root
 
mysql>set password for 'root'@'localhost'=password('newpasswd');
 
mysql>set password for 'root'@'%'=password('newpasswd'); //本条可选
posted @ 2017-01-19 22:59  guangfengli  阅读(164)  评论(0编辑  收藏  举报