linux下设置Mysql远程登录

来源:互联网 发布:java毕业设计代做 编辑:程序博客网 时间:2024/06/06 17:29

grant all on 数据库名.* to 用户名@'客户端IP地址' identified by '密码';

grant all on *.* to root@'%' identified by '密码';  

#使root能够从任意主机上进行访问

我的服务器mysql服务重启后才成功 

0 0
原创粉丝点击