Fight With Me!!!

导航

mysql设置指定ip远程访问连接实例

1. 授权用户root使用密码jb51从任意主机连接到mysql服务器:

复制代码代码如下:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'jb51' WITH GRANT OPTION;
flush privileges;


 
2.授权用户root使用密码jb51从指定ip为218.12.50.60的主机连接到mysql服务器:

复制代码代码如下:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'218.12.50.60' IDENTIFIED BY 'jb51' WITH GRANT OPTION;
flush privileges;

posted on 2015-05-28 11:37  nickTimer  阅读(701)  评论(0编辑  收藏  举报