[Mono-list] libmySQL-Dll not found exception

roopa RoWilson@novell.com
Fri, 05 Mar 2004 11:41:56 +0530


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