As far as I can recall, Mono.Data.MySql only supports MySQ 3.x.whatever. Mono.Data.MySql is deprecated and bit-rotted. It maybe removed from Mono's class libraries in the future. This would require approval from Miguel.
Please use ByteFX.Data.MySQLClient instead. It is included in the Mono class libraries. Even though it is a third-party library, Reggie Burnett allowed it to be included with Mono. If you insist on using a deprecated library, you may need to modify the file MONO_PREFIX/etc/mono/config where the dll is mapped for libmySQL. This is because it is named completely different between Windows and Linux. libmySQL.dll on Windows and libmysqlclient.so on Linux. Well, it was that way with MySQL 3.x. I'm not sure how it is for 4.x. Read the release notes for MySQL 4.x to see what has changed between 3.x and 4.x. This could give you a clue on how to fix Mono.Data.MySql. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of roopa Sent: Friday, March 05, 2004 1:12 AM To: [EMAIL PROTECTED] Subject: [Mono-list] libmySQL-Dll not found exception I installed mySQL using the MySql rpms (v 4.0.18.0). I tried executing the TestMySqlExecuteReader.cs program in /mcs/class/Mono.Data.MySql/Test and got the following exception: Unhandled Exception: System.DllNotFoundException: libmySQL in <0x0005c> (wrapper managed-to-native) Mono.Data.MySql.MySql:Init (intptr) in <0x000f2> Mono.Data.MySql.MySqlConnection:Open () in <0x0004f> (wrapper remoting-invoke-with-check) Mono.Data.MySql.MySqlConnection:Open () in <0x00093> TestSystemDataSqlClient.TestSqlDataReader:Main (string[]) I then added a symbolic link from /usr/lib/libmysqlclient.so to /usr/lib/libmySQL.so using ln -s libmysqlclient.so libmySQL.so Now executing TestMySqlExecuteReader.cs I get the following exception: Unhandled Exception: System.EntryPointNotFoundException: mysql_connect in <0x0005c> (wrapper managed-to-native) Mono.Data.MySql.MySql:Connect (intptr,string,string,string,string,uint,string,uint) in <0x0017f> Mono.Data.MySql.MySqlConnection:Open () in <0x0004f> (wrapper remoting-invoke-with-check) Mono.Data.MySql.MySqlConnection:Open () in <0x00093> TestSystemDataSqlClient.TestSqlDataReader:Main (string[]) What should I do to make the program run correctly? Regards, Roopa _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
