mysql -uroot -p
密码:12345678
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘123456‘;
mysql
原文:https://www.cnblogs.com/ywsheng/p/15039316.html