登陆状态下操作如下
第一条命令
grant all privileges on *.* to ‘root’@’%’ identified by ‘root’ with grant option;
第二条命令
flush privileges;
这样就可以通过ip访问,而不仅仅是localhost
登陆状态下操作如下
第一条命令
grant all privileges on *.* to ‘root’@’%’ identified by ‘root’ with grant option;
第二条命令
flush privileges;
这样就可以通过ip访问,而不仅仅是localhost