這個問題折磨了我一天:mysql
致使這個問題的緣由有不少,好比數據庫編碼不一致、mysql connector的版本不一致等等;sql
解決辦法:數據庫
1.確報VS中使用的MySQL版本(NuGet獲取相應便可)與當前電腦安裝的Mysql Connector版本一致;編碼
2.關閉VS ,在系統盤中找到文件DefaultView.SEView並刪除。io
一般路徑爲:用戶\AppData\Microsoft\VisualStudio\xx\ServerExplorer數據
C:\Users\Administrator\AppData\Roaming\Microsoft\VisualStudio\15.0_2cdedb40\ServerExplorerdb