关于用navicat远程连接mysql8数据库

解决办法:

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;

猜你喜欢

转载自www.cnblogs.com/wu-1393180819/p/10019436.html