connection problem with MySql
I have an embarrassing problem when I try to connect to my MySql DB I will explain:
I developed an application on Visual C # Express 2008 with a target framework 2.0 (therefore compatible mono) and I connected to MySql bd this is with the help of MySql.data.dll which I added the reference.
When I compiled it gives me the following problem please look at it whether i have any solution on it.
System. DllNotFoundException: kernel32. Dll at (wrapper managed-to-native) MySql. Data. Common. Semaphore: CreateSemaphore (MySql. Data. Common. SECURITY_ATTRIBUTES &, int, int, string) at MySql. Data. Common. Semaphore .. ctor (Int32 initialCount, Int32 maximumCount) [0x00000] at (wrapper remoting-invoke-with-check) MySql. Data. Common. Semaphore:. ctor (int, int) at MySql. Data. mysqlclient. MySqlPool .. ctor (MySql. Data. mysqlclient. MySqlConnectionString settings) [0x00000] at MySql. Data. mysqlclient. MySqlPoolManager. GetPool (MySql. Data. mysqlclient. MySqlConnectionString settings) [0x00000] at MySql. Data. mysqlclient. MySQLConnect. Open () [0x00000]
Re: connection problem with MySql
As long as you use only 2.0 of the framework classes, you are roughly compatible for Mono ... but if you use the external library and that it refers to native Windows DLL, it works more friendly. You can perhaps recover with Wine (I saw Linux running a large complex Windows application with Mono + successful).
Otherwise,I have one doubt in my mind, what is your Client? Is the. NET connector official?
|Tags: dll file, framework, kernel32, mysql db|
|Thread Tools||Search this Thread|
|Similar Threads for: "connection problem with MySql"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to allow remote connection to MySQL||Gomeler||Software Development||5||17-12-2009 01:24 PM|
|Mysql Error : Can't connect to local mysql server through socket ' var lib mysql mysql.sock' 2||roshan45||Software Development||3||07-11-2009 09:36 PM|
|Mysql connection with java||Xena||Software Development||2||24-04-2009 03:16 PM|
|MySQL: connection problem of socket||Bull50||Software Development||4||31-03-2009 12:00 AM|
|bad mySQL connection||Ron1||Software Development||3||12-02-2009 12:37 PM|