grant all on 数据库名.* to 用户名@'客户端IP地址' identified by '密码';
grant all on *.* to root@'%' identified by '密码';
#使root能够从任意主机上进行访问
我的服务器mysql服务重启后才成功
grant all on 数据库名.* to 用户名@'客户端IP地址' identified by '密码';
grant all on *.* to root@'%' identified by '密码';
#使root能够从任意主机上进行访问
我的服务器mysql服务重启后才成功