2012-02-25 61 views
1

我試圖從遠程mysql服務器獲取實體數據模型。我正在輸入正確的 連接字符串,然後選擇下一步。我看到所有表格,我可以檢查它們。當嚮導完成即時得到任何實體模型,這樣的錯誤:Mysql連接器和實體數據模型生成器

Unable to generate the model because of the following exception: 'The provider did not return a ProviderManifestToken string. 
    Access denied for user 'myserver'@'myIP' (using password: NO) 

這真的很奇怪,因爲這個相同的連接字符串我可以存取權限從服務器資源管理器數據庫。我包括所有需要的參考。我真的無法弄清楚這裏有什麼問題。

我的連接字符串:

<add name="WebformSubmittedDataContainer" connectionString="metadata=res://*/WebformSubmittedData.csdl|res://*/WebformSubmittedData.ssdl|res://*/WebformSubmittedData.msl;provider=MySql.Data.MySqlClient;provider connection string=&quot;server=myserver;User Id=user;password=mypassword;database=base_name;port=3307&quot;" providerName="System.Data.EntityClient" /> 

更新1:

心中已經只是試圖經由使用MySQL連接代碼manualy連接,並將其與succesfull結束(抓起特定數據和在控制檯上顯示)。

回答

2

通過右鍵單擊MySQL Data Connection並選擇Modify Connection...編輯連接到MySql Database Data ConnectionServer Explorer

確保已選中Save my password。如果未選中,即使密碼顯示在web.configapp.config文件中的連接字符串中,連接嘗試也沒有密碼。

+0

Omg,這太荒謬了。工作,謝謝 – Bergkamp 2014-08-28 10:57:58