1. 程式人生 > >C#連接mysql是提示unable to connect to any of the specid

C#連接mysql是提示unable to connect to any of the specid

C# mysql unable to connect to

1、測試連接時提示錯誤如下圖:

技術分享圖片

2、解決的辦法是Server name用127.0.0.1。別用'.'或者localhost。如下圖:

技術分享圖片

C#連接mysql是提示unable to connect to any of the specid