connecting to MySQL server from PDA
Posted by: Simon Graham
Date: March 02, 2007 05:53AM

Hi, i am trying to connect to a MySQL server from a pocket pc 2003 in c#.net. I have used the same code that i implemented and worked with a winform, however, it is not successful when used with the PDA. If anyone could let me know what the problem is or whether this is even possible or not i would be very grateful!Thankyou for your time, Simon Graham.

The code and errors are below:
(The code highlighted as the error is the method name: createConnection())

CODE:

private MySqlConnection createConnection()
{
MySqlConnection conDatabase;
try
{
conDatabase = new MySqlConnection("Data Source= localHost;" +
"Database = gymcheck;" +
"Persist Security Info=YES;" +
"UserId=root;PWD=********;");
conDatabase.Open();
}
catch (MySqlException)
{
conDatabase = null;
}

return conDatabase;
}


ERRORS:

Error 1 The type\'System.ComponentModel.Component\' is defined in an assembly that is not referenced. You must add a reference to assembly \'System,
Version=2.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089\'.
Error 2 The type\'System.Data.IDbConnection\' is defined in an assembly that is notreferenced. You must add a reference to assembly \'System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\'.

Options: ReplyQuote


Subject
Written By
Posted
connecting to MySQL server from PDA
March 02, 2007 05:53AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.