原文:连接mysql时报:message from server: "Host '192.168.76.89' is not allowed to connect to this MySQL server 处理方案

先用localhost方式连接到MySQL数据库,然后使用MySQL自带的数据库mysql use mysql 执行:select host from user where user root 发现,host的值就是localhost。 所以将它的值改掉:update user set host where user root 修改完成后,执行:flush privileges 将修改内容生效, ...

2018-09-26 17:11 0 731 推荐指数:

查看详情

解决java.sql.SQLException: null, message from server: "Host xxx' is not allowed to connect to this MySQL server异常

MySQL迁移到新服务器后,重新安装了MySQL8(解压方式的安装),web服务器连接,后台报了这个错。 运维同学,检查了MySQL服务器的防火墙设置,没有限制3306端口,且通过telnet方式,可以在web服务器上测通MySQL服务器上的端口,因此,服务器本身的ip或者端口限制基本排除 ...

Wed Apr 20 23:24:00 CST 2022 0 3168
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM