[Mono-list] MySQL Data Provider for MySQL (Mono 0.17)

Steven Balthazor stevenbalthazor@hotmail.com
Fri, 3 Jan 2003 13:36:07 -0700


I had a similar problem (if I remember correctly).  To get it to compile
correctly on Linux I had to add a link from /usr/lib/libmysqlclient.so to
/usr/lib/libmySQL.so e.g.: 
ln -s libmysqlclient.so libmySQL.so

Cheers,
Steven Balthazor

-----Original Message-----
From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com] On
Behalf Of Rolf Tollerud
Sent: Friday, January 03, 2003 1:02 PM
To: mono-list@ximian.com
Subject: [Mono-list] MySQL Data Provider for MySQL (Mono 0.17)


When I try to run MySqlTest (which compiles just fine) on windows XP I get
following error messages:
 
(mono MySqlTest.exe)
 
** (MySqlTest.exe:3924): WARNING **: Failed to load function mysql_connect
from libmySQL
 
** (MySqlTest.exe:3924): WARNING **: Failed to load function mysql_connect
from libmySQL
 
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
in <0x00025> 06 Mono.Data.MySql.MySql:Connect
(intptr,string,string,string,string,uint,string,uint)
in <0x003e6> 00 Mono.Data.MySql.MySqlConnection:Open ()
in <0x00057> 00 Test.Mono.Data.MySql.MySqlTest:Main (string[])
 
Why will it not load mysql_connect? Apparently its loads all the other
functions from libmySQL.dll..