故障现象:windows7系统使用Navicat管理工具对centos虚拟机上的mysql数据库进行远程连接的时候,报错提示一下报错:
排障思路:这个提示貌似再说此IP没有被授权,需要到MySQL上为这IP进行授权
排障步骤:
mysql -uroot -p*********
授权IP登陆:grant all on *.* to 'root'@'192.168.238.3' identified by '*********';
生效:use mysql;
查看授权结果:select * from user where host='192.168.0.111'\G;
排障结果:
排障思路:这个提示貌似再说此IP没有被授权,需要到MySQL上为这IP进行授权
排障步骤:
mysql -uroot -p*********
授权IP登陆:grant all on *.* to 'root'@'192.168.238.3' identified by '*********';
生效:use mysql;
查看授权结果:select * from user where host='192.168.0.111'\G;
排障结果:
编辑回复