Hello,
I am trying to connect to a local MySQL server. I've read on the MSDN site that you cannot connect to MySQL server only SQL ODBC ect., is this true? Does that mean i will have to learn C/C++
Thanks Aaron1178
C# and MySQL
Page 1 of 13 Replies - 579 Views - Last Post: 08 January 2011 - 01:39 AM
Replies To: C# and MySQL
#2
Re: C# and MySQL
Posted 07 January 2011 - 12:54 AM
I'd do a search for the .NET MySQL adapter. There is one out there - just too lazy to go find it.
#4
Re: C# and MySQL
Posted 08 January 2011 - 01:39 AM
Search google for mySQL connector, download it, install it, add MySql.Data.dll to your resources and to your code.
using MySql.Data.MySqlClient;
namespace User_System
{
class dStream
{
private MySqlConnection conn = new MySqlConnection("Server=ServerAdress;Database=DatabaseName;Uid=UserID;Password=YourPassword");
private MySqlCommand command;
private MySqlDataReader reader;
}
}
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|