Mysql報錯 message from server: "Host '61.148.245.96' is not allowed to connect to this MySQL server

  原因是:遠程服務器不允許你的java程序訪問它的數據庫。所以,我們要對遠程服務器進行設置,使它允許你進行連接。 步驟:一、打開mysql控制檯,輸入:use mysql; 二、輸入:show tables; 三、輸入:select host from user;   四、輸入:update user set host ='%' where user ='root'; 五、打開計算機的服務界面,
相關文章
相關標籤/搜索