mysql
开启远程授权,使用可视化工具(Navicat for mysql
)连接进行操作
1.使用SSH工具连接mysql(xshell、putty)
mysql -uroot -ppassword;
2.授权远程连接
grant all privileges on *.* to 'root'@'%';
3.刷新授权
flush privileges;
之后即可使用Navicat for mysql
进行连接
关闭授权命令
revoke all on *.* from 'root'@'%';