[Mono-list] libmySQL-Dll not found exception

Cory Nelson phrosty@int64.org
Fri, 5 Mar 2004 09:59:43 -0800


>From what I remember, Mono.Data.MySql was discontinued.  Use the bytefx
provider, it works great and is completely managed, so no C libraries needed
(bytefx.com).

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of roopa
Sent: Thursday, March 04, 2004 10:12 PM
To: mono-list@lists.ximian.com
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  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list