Mysql-Workbench:connect localhost

/ Linux / 没有评论 / 428浏览

error:Your connection attempt failed for user 'root' from your host....

解决办法:

终端进入mysql,执行ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';