Reputation: 95
I'm trying to use Entity Framework Reverse Engineer Code First with MySQL DB, I have installed these: mysql-for-visualstudio-1.2.3 & mysql-connector-net-6.9.3
The connection to MySQL DB seems to work:
I get the following error:
System.Data.ProviderIncompatibleException: The provider did not return a ProviderManifestToken string. ---> MySql.Data.MySqlClient.MySqlException: Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: NO) ---> MySql.Data.MySqlClient.MySqlException: Access denied for user 'root'@'localhost' (using password: NO)
I tried a lot of solutions found on the internet but nothing works.
Here is the connection string I have in the web.config:
<add name="TFEContext" providerName="MySql.Data.MySqlClient" connectionString="server=localhost;
port=3306;database=tfe_schema;uid=root;password=********"/>
Upvotes: 0
Views: 1575
Reputation: 95
After 2 days of search, I checked the box "Save my password" and it's working but the password to access the MySQL server is hardcoded in the web.config.
Upvotes: 1