MySQL: Host '127.0.0.1' is not allowed to connect to this MySQL server

来源:互联网 发布:php短信接口怎么写 编辑:程序博客网 时间:2024/06/05 16:25

MySQL连接数据库出现错误:Host '127.0.0.1' is not allowed to connect to this MySQL server

实际访问数据库配置:jdbc.url=jdbc:mysql://localhost:3306/*****

实际数据设置为只允许localhost访问,经检查发现是MySQL配置文件(/etc/my.cnf)中设置了skip-name-resolve,注释之后可以正常访问

阅读全文
0 0