内网部署系统遇到的问题,127可以使用访问本地,内网其它IP无法访问 如navicat连接报错1045 access denied for use…
解决方法:
(1)配置环境环境变量由任意界面登录mysql (2)未配置由bin目录进去
mysql -uroot -p
输入密码后进入MYSQL
输入grant all privileges on . to root@“IP” identified by ‘password’ with grant option;
flush privileges;
IP:即GRANT赋予权限的IP,可以%(即所有IP)
password:即密码
刷新一下数据库
做完了这些即可以访问数据库了