mysql设置指定ip远程访问连接的方法
1、授权用户root使用密码jbxue从任意主机连接到mysql服务器:
grant all privileges on *.* to 'root'@'%' identified by 'jbxue' with grant option;
flush privileges;
2、授权用户root使用密码jbxue从指定ip为218.12.50.60的主机连接到mysql服务器:
grant all privileges on *.* to 'root'@'218.12.50.60' identified by 'jbxue' with grant option;
(责任编辑:IT)flush privileges; |