mysql允许指定ip远程访问连接
- 作者: 叫我官人c丶
- 来源: 51数据库
- 2020-09-01
|
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;
flush privileges; |
推荐阅读
