mysql problem

  • Thread starter Thread starter Dirk Reske
  • Start date Start date
D

Dirk Reske

Hello,

I'm using the bytefx.data library to connect to a mysql server:

string ConnectionString = "Server=localhost;Database=test;User
Id=Freak;password=freak;";
IDbConnection dbConn;
dbConn = new ByteFX.Data.MySqlClient.MySqlConnection(ConnectionString);
dbConn.Open();

I get an NullReference exception when I call the Open() member?
does anyone know why?

thx
 
Hello,

I'm using the bytefx.data library to connect to a mysql server:

string ConnectionString = "Server=localhost;Database=test;User
Id=Freak;password=freak;";
IDbConnection dbConn;
dbConn = new ByteFX.Data.MySqlClient.MySqlConnection(ConnectionString);
dbConn.Open();

I get an NullReference exception when I call the Open() member?
does anyone know why?

thx
What kind of exception? If that solution is based on MyODBC, there are
some problems with older versions of MySQL.
Or you may try the native .net classes, provided by MySQL:
http://www.mysql.com/articles/dotnet/index.html

Sunny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top