MySQL5Demo program lazarus / 16-Databases ---------------------------------------------------------------------- arwen · 2007-05-08 13:00 At http://freeflow.awardspace.com/lazarus.html you can dowload the demo program mysql_demo_20050408 modified for SQL5 and with fixed bug . The link to download is at the end of the page and is MySql5Test.zip   Now Works fine   Thanks to all . ---------------------------------------------------------------------- Vincent Snijders · 2007-05-08 13:36 Can you update the wiki? Then I will upload the zip file to lazarus- ccr as mysql_demo_20070508.zip. ---------------------------------------------------------------------- arwen · 2007-05-08 15:50 I have executed a deepened analysis of the modifications that I have made and this is the result. When I try to load the demo for the firtst time I receive this error : QuoteTJiTForms::TFormsTryMySQL Class "TMySQLConnection" not found So I have fix it putting a Connection components on the form and changing the code like below from : Code: [Select] uses   Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,   Buttons, ComCtrls, mysql4conn, sqldb; type   { TFormTryMySQL }   TFormTryMySQL = class(TForm)     MySQLConnection1: TMySQLConnection; ...... to Code: [Select] uses   Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,   Buttons, ComCtrls, sqldb, mysql50conn; type   { TFormTryMySQL }   TFormTryMySQL = class(TForm)     MySQLConnection1: TMySQL50Connection; ..... But at this point when I run the program I receive a SQL syntax error : Quote ................ for the right syntax to use near '' at line 1 This problem has been resolved when I change the value of the property below of the SQLQuery components Quote SQLQuery.ParseSQL:=false; SQLQuery.ReadOnly:=true; and I have recompiled the program. Like say me bram . But I don't exactly understand why now work because when I open the project the value are the default Quote SQLQuery.ParseSQL:=true; SQLQuery.ReadOnly:=true; The modification that I have made in the ConnectButtonClick procedure Code: [Select] // Go to the first record [modified by Arwen]     if SQLQuery1.Active then begin       SQLQuery1.First;       ShowString('Query ACTIVE and at the first record');     end     else       ShowString('Query NOT ACTIVE'); are insignificant for the operation of the program and can deleted . Vincent, I believe that therefore it is not the case to modify the WIKI because the code is substantially not changed . In any case this evening I will verify if it is necessary to make it .   Thanks to all for the availability and the aid that you have given to me ---------------------------------------------------------------------- arwen · 2007-05-09 15:06 Quote from: "Vincent"Can you update the wiki? Then I will upload the zip file to lazarus-ccr as mysql_demo_20070508.zip. http://wiki.lazarus.freepascal.org/MySQLDatabases I have verified and I believe that the only modification to make to the WIKI would be the link to download the demo program. But I could translate the article in Italian  :wink: