MySQL and Compact Framework
Hello,
i want to use MySQL with my mobile phone. I have installed the "MySQL Connector" and use this code:
Code:
Dim conn As New MySql.Data.MySqlClient.MySqlConnection
Dim myConnectionString as String
myConnectionString = "server=127.0.0.1;" _
& "uid=root;" _
& "pwd=12345;" _
& "database=test;"
Try
conn.ConnectionString = myConnectionString
conn.Open()
Catch ex As MySql.Data.MySqlClient.MySqlException
MessageBox.Show(ex.Message)
End Try
My machine has erros with "MySql.Data.MySqlClient.MySqlException" and "MySql.Data.MySqlClient.MySqlConnection"
How can i solve this problem? With the normale Framework i can use MySQL...
thanks
vb!
Re: MySQL and Compact Framework
did you reference the assembly?
-tg
Re: MySQL and Compact Framework
Yes I add MySQL.Data.Dll to the reference.
My machine has a prolbleme with "System.Data.Common.DbConnection" an
"System.Data.Common.DbException".
thanks
Re: MySQL and Compact Framework
I have never heard of MySQL that works on Windows Mobile.
There are commercial versions to allow the functionality available like this:
http://www.handango.com/catalog/Prod...oductId=183025
Is using MySQL a must? If not, you could just use SQL Server CE, which works in the compact framework.