2
我使用Visual Studion 2012中,MySQL 5.6.14,連接器6.7.4 .NET和Visual Studio插件1.0.2MySQL連接6.7.4實體框架5型號首先
我已經創建了一個實體框架,但不能得到「從模型生成數據庫」工作。
我曾嘗試修改這裏建議
http://bugs.mysql.com/bug.php?id=67964
,但現在我得到下面的異常(它看起來好像憑據不會獲得通過)。有沒有人經歷過這個?
`Error 2 Running transformation: MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'localhost' (using password: NO) ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Access denied for user ''@'localhost' (using password: NO)
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Authenticate(String authMethod, Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at MySql.Data.MySqlClient.MySqlScriptServices.GetTableCreateScript(EntitySet entitySet, String connectionString, String version)
at Microsoft.VisualStudio.TextTemplatingD3E432D0E484C972F42C6D13E94510BEB0C48500C7AACE47A3533033751EF00050B7580D6891ADC8583A2327CA5DD242B2AF4C7A11EB05A80839B23CDA63F07B.GeneratedTextTransformation.TransformText() in c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToMySQL.tt:line 133 c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToMySQL.tt 133 1`
你解決了你的問題! 我有同樣的問題 –