sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
参考:https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
参考:https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost