天天看點

Vs2017連接配接Mysql資料庫時發生unable to connect to any of specified Mysqlhosts

以下僅為自己遇到的問題的解決的方法:

打開VS2017點選視圖—>伺服器資料總管–>右鍵資料連接配接–>添加連接配接–>Mysql server Database–>繼續–>

Vs2017連接配接Mysql資料庫時發生unable to connect to any of specified Mysqlhosts

在輸入Sever name時一定要輸入localhost或127.0.0.1不然就會出現下面的錯誤:

Vs2017連接配接Mysql資料庫時發生unable to connect to any of specified Mysqlhosts

正确輸入會彈出下面的視窗:

Vs2017連接配接Mysql資料庫時發生unable to connect to any of specified Mysqlhosts

繼續閱讀