el stamatakos wrote:
Hi All,
I am making some progress with Lazarus. It is a great tool and hope
to learn it well. I have a problem when trying to connect to MySQL
4.1. I used some of the code from the tutorial essentially and I
have the following code
MySQLConnection1.HostName := HostEdit.Text;
MySQLConnection1.UserName := UserEdit.Text;
MySQLConnection1.Password := PasswdEdit.Text;
MySQLConnection1.DatabaseName :='mysql';
MySQLConnection1.Open;
I stepped through each of the MySQL commands from HostName to Open
to find out the problem. I encountered a problem when I tried to do
MySQLConnection1.Open; and got the following error
Project Raised exception class 'EInOutError" with message:
Can not load MySQL library "libmysqlclient.so". Please check your
installation.
I added the MYSQL41Connection, TSQLQuery, TSQLTransaction from the
SQLdb tab in Lazarus. If I look at the Project Inspector, I see
SQLDBLaz (>=1.0) as a Required Package.
I haven't worked with MySQL in years and then only little, but the client
library for mysql obviously can't be found/loaded. I've only worked in linux a
bit, but I remember having a similar problem with a firebirdsql client app.
Someone walked me through creating a symlink to the actual .so file from the
application's directory if I remember correctly.
Someone with more experience than I will pipe in I'm sure, but just a thought in
the meantime.
--
Warm Regards,
Lee
"My wife is better at Guitar Hero than I am and it's really irritating."
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives