0

Possible Duplicate:
How do I setup ASP.NET MVC 2 with MySQL?

Hey guys I created and configured a mySQL database, and am using ASP.NET MVC framework. What is the connection string that I should use to connect with my database?

Can anyone suggest a tutorial or a book resource I could use?

Community
  • 1
  • 1
Undermine2k
  • 1,481
  • 4
  • 28
  • 52
  • possible duplication: http://stackoverflow.com/questions/2512852/how-do-i-setup-asp-net-mvc-2-with-mysql, or http://stackoverflow.com/questions/3252949/what-is-wrong-with-this-mysql-connection-string – aleafonso Sep 13 '12 at 10:11

3 Answers3

1
<connectionStrings>    
    <add name="LocalMySqlServer" connectionString="Data Source=localhost;Database=xxxxx;User Id=xxxxx;Password=xxxxxxxx;" providerName="MySQL.Data.MySqlClient"/>
</connectionStrings>

Hope this helps!

aleafonso
  • 2,244
  • 8
  • 38
  • 58
0

http://www.connectionstrings.com contains a list of most of the connectionstrings from different databases.

The MySQL section can be found here: http://www.connectionstrings.com/mysql

Xharze
  • 2,703
  • 2
  • 17
  • 30