解决方法1: SET PASSWORD = '123456' 解决方法2: ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; 命令行展现: 报错: 解决: 特别感谢:https://blog.csdn.net/qq939782569/article/details/87344602