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

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,注释之后可以正常访问

你可能感兴趣的:(mysql,mysql,mysql,mysql,mysql,localhost,127.0.0.1)