1、use mysql; 2、alter user 'root'@'localhost' identified with mysql_native_password by '********'; 3、flush privileges; 原文 https://www.cnblogs.com/zichuan/p/9203129.html