
MsqlCommand.Connection = this.msqlConnection define the connection used by the command object MsqlConnection = new (“server=localhost user id=UserName Password=UserPassword database=DatabaseName persist security info=False”) If you want to connect to a MySql database from a C# application (Windows or Web) you can use the next sequence: //define the connection reference and initialize it open Server Explorer Window (View -> Server Explorer).
#Visual studio server explorer version install
#Visual studio server explorer version how to
This problem has another solution: How to deploy. So solving this problem you could not install the application on Windows XP because it will not find the required connector. In my case I could not install the connector (the installation wizard failed). But this version has another problem.The MySQL connector does not work on Windows XP, only on Windows 7. The problem seems that has been solved with the release of the MySql Connector/Net 6.3.4. The same problem has been reported also for the MySql Connector/Net 6.2.2. This is a compatibility problem between VS2010 and MySQL connector. There were no problems compiling the project, just VS2010 could not see the connector when trying to create a new Data connection. Also when trying to add the data connection, in the Choose Data Source window it does not show the MySQL Database.The MySQL connector (an older version – 5.2.7.0) was installed and the reference to MySql.Data namespace was added. The application connects to a MySQL database and after porting it to VS2010, the IDE does not show the connection to the MySQL in Server Explorer. I have developed a Windows Application in Visual Studio 2008 some years ago and now it has been updated in Visual Studio 2010.
