一、开启权限:
1、mysql服务器的那台机器查找服务:mysqld.exe,找到mysql的安装路径;
2、进入mysql命令操作模式:
C:Program Filesmysql-5.6.34-winx64in>mysql -hlocalhost -uroot -p
3、查询已有的权限列表:
mysql> SELECT User, Password, Host FROM user;
4、添加权限:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
5、刷新:
mysql> FLUSH PRIVILEGES;
二、使用Navicat for MySQL访问
已经就可以成功连接了! :)