在MySql数据库的主机上,在mysql命令行中输入以下命令:
grant all on *.* to root@'%' identified by "root" ;
赋予任何IP访问的权限,任何IP都能以用户名:root ,密码:root 来进行局域网的访问!
(命令中*.*是通配任何IP,你也可以指定IP)
在MySql数据库的主机上,在mysql命令行中输入以下命令:
grant all on *.* to root@'%' identified by "root" ;
赋予任何IP访问的权限,任何IP都能以用户名:root ,密码:root 来进行局域网的访问!
(命令中*.*是通配任何IP,你也可以指定IP)