[SOLVED] Error to connect a MySQL 5.1 lazarus / 16-Databases ---------------------------------------------------------------------- ezikoh · 2016-04-12 15:11 Hello I've written a console program connecting to  Mysql server 5.1  and runs without errors connection. But now, I'm doing the same program using GUI and I get the following error when trying to connect to mysql server 5.1. TMySQL51Connection can not work with the installed MySQL client version: Expected (5.1), got (6.1.6) In both project the file libmysql.dll is in the project folder, and do not understand how indicate that use mysql version 5.1 in the GUI program Thank you. ---------------------------------------------------------------------- LacaK · 2016-04-12 18:20 IMO it can not play a role if you run compiled exe (console or GUI) Once you use TMySQL51Connection behavior is same. Does error appears when you run compiled exe or when you work in Lazarus IDE ? Are you sure that, libmysql.dll are same in both cases ? ---------------------------------------------------------------------- ezikoh · 2016-04-12 18:30 Hello, when I compiled exe does not appears errors, only in runtime. The file libmysql.dll is the same in both cases. To correct error is posible use the class TSQLDBLibraryLoader to load libmysql.dll before init  TMySQL51Connection?. Thank you. ---------------------------------------------------------------------- LacaK · 2016-04-13 19:48 Yes you can. Or if you use trunk version of FPC you can specify property of TMySQLConnection :  SkipLibraryVersionCheck := True; ---------------------------------------------------------------------- ezikoh · 2016-04-18 14:05 Thank you for your help.