mysql设置root的密码

mysql -u root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');
原文地址:https://www.cnblogs.com/ishell/p/4546240.html