>Yes, and maybe that you can update the wiki? Although I don't feel confident advising because of my limited skills, I made this amendment to the wiki:
"...called TMySQLConnection (depicted by a dolphin). If can't find $Lazarus/components/sqldb/mysql directory and mysql4connlaz.lpk then this mean that you are using a newer version in which mysql4connlaz.lpk merged with sqldblaz.lpk. It is OK, installing sqldblaz.lpk you will get all components mentioned into same Lazarus IDE toolbar TAB. If you do not know how to install components..." Please approve information and English syntax. >Reading the WIKI-text above, you'll see >immediately what's wrong: >you're not using the latest SVN version >of Lazarus. I run "svn update" into Lazarus folder every day and not only once. This moment's Lazarus revision is 8893. >Sorry, but I can't resist: >'I've written some code and it raises >an exception. Can anyone help me?' >What is the exception: 'Incorrect >password'? Or maybe: 'Can not resolve >hostname'? I understand the way you feel not getting enough information to figure the problem out. Information I had last time just before posted this request seemed useless to me so I did not include it, don't know, can't remember what exactly was, I believe it was totally general. I'm sure that if it was providing something useful such as 'Incorrect password' or 'Can not resolve hostname' I wouldn't judge it the way I did. In the mean time, I read again article mentioned, followed every one of suggestions there and made some cleaning and privileges checking. Running sample application again, I get segfault mentioned on your reply. After svn-ing fpc from scratch I got revision 2820. Now, after svn-ing fpc and try to compile it (I have to do it, don't I?) using comamnd "make all" I get an error "cannot find -lgpm". Let me find the cause and be back if necessary. Panagiotis -----Original Message----- From: Joost van der Sluis [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 5:48 PM To: lazarus@miraclec.com Subject: Re: [lazarus] MySQL Connection On Wed, 2006-03-08 at 09:37 +0000, Panagiotis Sidiropoulos wrote: > I try to connect into a MySQL server hosted on a local network. All > comments following are related to information povided at: > wiki.lazarus.freepascal.org/index.php/MySQLDatabases#Connect_to_a_serv > er > > >Another possibility is the installation of the package in the > >$Lazarus/components/sqldb directory. In this directory you see a > >package file called sqldblaz.lpk. You need to install this package > >and the mysql4connlaz.lpk from the $Lazarus/components/sqldb/mysql > >directory. > > Package in /sqldb folder is succesfuly installed. Package > mysql4connlaz.lpk is not found into /sqldb/mysql folder, this folder > does not even exist. I suppose some merging happened here, I just need > to know if it is enough to install main package found into /sqldb > folder. Yes, and maybe that you can update the wiki? > >Note. In latest SVN version of Lazarus you will find 3 > >MySQLConnection components. These are TMySQL40Connection, > >TMySQL41Connection and TMySQL50Connection. Make sure you use the > >correct one to connect to your server. So if you are running MySQL > >4.1 use the TMySQL41Connection. > > After installing sql component packages, I get general use components, > not related to a specific MySQL server version, not TMySQL40Connection > found but TMySQLConnection etc. Reading the WIKI-text above, you'll see immediately what's wrong: you're not using the latest SVN version of Lazarus. > What is the problem: > TSQLConnection.Open raises an exception, not ".connected = false", > just an exception. Sorry, but I can't resist: 'I've written some code and it raises an exception. Can anyone help me?' What is the exception: 'Incorrect password'? Or maybe: 'Can not resolve hostname'? Or do you've got a segfault? Then it could be this bug: http://www.lazarus.freepascal.org/mantis/view.php?id=1711 And if it's about database-issues, please tell us which version of fpc you are using. The development of sqldb goes relatively fast. So you'd better always use the latest svn version from fpc. -- Met vriendelijke groeten, Joost van der Sluis CNOC Informatiesystemen en Netwerken http://www.cnoc.nl _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives