关于用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;

 

posted @ 2018-11-26 11:36  吴桂鑫  阅读(487)  评论(0编辑  收藏  举报