简体   繁体   中英

Creating Database Model on ASP.NET MVC with MYSQL

I'm using ASP.NET C# with database MYSQL, I follow this step on creating a database model with Entity Data Model Wizard http://www.asp.net/mvc/tutorials/movie-database/create-a-movie-database-application-in-15-minutes-with-asp-net-mvc-cs . When I run this, it showed error --> Unable to generate the model because of the following exception: 'The provider did not return a ProviderManifestToken string. Access denied for user 'root'@'localhost' (using password: NO).

I already have connection with the same connection string uses on webconfig MySQLMembershp I copied from this How do I setup ASP.NET MVC 2 with MySQL? which is working.

if they have the same connection string uses this should work, but why is not working when I create a database model.

First of all EF model connectionstring and Asp.NET membership connectionstring is different. Secondly you may have to see how EF model works using MySQL database here

Getting MySQL work with Entity Framework 4.0

It seems like you have no password. Have your tried using the password "root"?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM