Host is not allowed to connect to this MySQL server---------------->windows10

來源:互聯網
上載者:User

標籤:使用者   one   windows10   not   無法遠程   mysq   防火牆   open   修改   

錯誤,資料庫無法遠端連線.

第一步,關閉本地防火牆

注意:

      兩台串連的機器都需要關閉

第二步,兩台機器互相ping,看是否可以互相訪問

丟失為零,意為可以串連.

第三步登入資料庫

第四步,切換,資料庫為mysql,授權訪問,因為是本地串連,所以,給予了所有許可權

 

第五步:修改生效

flush privileges;

番外:其他方式非全部許可權賦予

允許某個特定使用者訪問本機,比如:192.168.31.255

1 grant all privileges on dk.* to ‘myuser‘@‘192.168.31.255‘ identified by ‘mypassword‘ with grant option;2 flush privileges;
View Code

 

Host is not allowed to connect to this MySQL server---------------->windows10

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.