How to get rid of the VersionMismatch warning in SQLB-MySQL51Conn component lazarus / 16-Databases ---------------------------------------------------------------------- Middlecope · 2012-03-13 21:49 Am I doing right/wrong/crazy? Comments are very much appreciated OS Linux OpenSUSE 12.1 FPC compiler standard installed from fpc-2.6.0-1.x86_64.rpm Important in this process /usr/lib64/fpc/2.6.0/units/x86_64-linux/fcl- db/ is created. LAZARUS IDE created from SVN v0.9.31 With editor Change made in ~/fpcsrc/packages/fcl- db/src/sqldb/mysql/mysqlconn.inc: Quoteprocedure TConnectionName.DoInternalConnect; var   FullVersion,   ClientVerStr: string; begin   InitialiseMysql;   {changed   Fullversion:=strpas(mysql_get_client_info());   ClientVerStr := copy(FullVersion,1,3);   If (ClientVerStr<>MySQLVersion) then     Raise EInOutError.CreateFmt(SErrVersionMisMatch,[ClassName,MySQLVe rsion,FullVersion]);   inherited DoInternalConnect; }   ConnectToServer;   SelectDatabase; end;        In the same directory commandline #>fpc mysql51conn.pas mysql51conn.o and mysql51.ppu are created Copy these 2 files to /usr/lib64/fpc/2.6.0/units/x86_64-linux/fcl-db/ Maybe the next step can be ommitted:  Compile sqldb.lpk And of course "Build Lazarus with normal IDE" Now I can use the component MySQL51Conn without the warning. I tried some simple Querries via the component on a MariaDB and UNTIL NOW it looks fine Teunis