原文:連接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 將修改 ...

2017-08-13 23:52 0 5839 推薦指數:

查看詳情

解決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