When I do that, everything works at design time, but then I get runtime error ‘Server connect failed’
On Thu, Aug 15, 2024 at 14:58 Goran Atanasijevic via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Hi, > > you can use workaround > > InventoryConnection.SkipLibraryVersionCheck:=true; > > I did that when Lazarus didn't read correctly MySQL 5.5 with matching dll > version. > > Best, > Goran > > > On Thursday, 15 August 2024 at 06:25:51 pm GMT+2, Larry Dalton via lazarus > <lazarus@lists.lazarus-ide.org> wrote: > > > I am running Lazarus 3.2 on Windows 11. > I am using MySql version 8.0.39. > I am using a single form test program, with only one unit. > My components are: > InventoryConnection = TMysql80Connection > InventoryQuery = TSqlQuery with InventoryConnection as database > InventorySource =Tdatasource with InventoryQuery as dataset > InventoryTransaction = TSQLTransaction with InventoryConnection as Database > InventoryGrid =TDBGrid with InventorySource as datasource > > The test database is inventory with one table named 'base_info'; > table has two columns: ID = INT and Stock_num =varchar(10); > > when I set connection on connected property on InventoryConnection to TRUE > and set Active property on InventoryQuery to True in design time, > everything connects and opens just fine, and the columns appear in > InventoryGrid, > > However, when I run the application, I get the following error: > 'TMySql80Connection can not work the the installed MySQL client erosion: > Expected (8.0), got (6.1.10), and the application aborts. > > I added a TMySql57connection to the same database on the same form, > and got the reverse error, expected (5.7), got (8.0.39). > > help, please > -- > _______________________________________________ > lazarus mailing list > lazarus@lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -- > _______________________________________________ > lazarus mailing list > lazarus@lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus >
-- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus