解决办法:
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;
原文地址:https://www.cnblogs.com/wu-1393180819/p/10019436.html
时间: 2024-10-09 07:11:45