线上部署问题
我把服务器部署到线上后,涉及到数据库的请求会报这个错,网上查找可能是没有访问权限,但是本地可以进行远程连接数据库,用grant all privileges on *.* to 'root'@'%' identified by 'root密码';(root密码这写的是我的密码)这个命令也试过了,还是不行,想问下,还有什么其他的原因么
35
收起
正在回答
2回答
grant all privileges on *.* to 'root'@'%' identified by 'root密码';
flush privileges;
Flush了吗?
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星