解决办法:mysql
mysql-> use mysql; mysql-> select host, user, authentication_string, plugin from user; #将user值为root的host值改成%,表示容许全部ip链接到此数据库,再将plugin值改成mysql_native_password,最后赋予权限 mysql-> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;