Forum > Databases
TMySQL56Connection can not work with the installed MySQL client version
Mario:
--- Quote from: MarkMLl on June 16, 2024, 10:30:47 am ---
--- Quote from: Mario on June 16, 2024, 10:14:44 am ---AFAICT, mysql 3.3 is not installed on this system, unless something really really strange happened.
--- End quote ---
But something's pulled in an old client library. Try to track it down (i.e. probably a .so file) and then use apt-file to determine what package it's come from (which would probably merit a Debian bug report).
MarkMLl
--- End quote ---
Hmm... I found a few things with "3.3" in the file name, but none mysql-related. I was hoping to find the .so but nope.
Thaddy:
With my installation a plain mysql.so an on windows a plain mysql.dll show up.
Mario:
--- Quote from: MarkMLl on June 16, 2024, 10:30:47 am ---
--- Quote from: Mario on June 16, 2024, 10:14:44 am ---AFAICT, mysql 3.3 is not installed on this system, unless something really really strange happened.
--- End quote ---
But something's pulled in an old client library. Try to track it down (i.e. probably a .so file) and then use apt-file to determine what package it's come from (which would probably merit a Debian bug report).
--- End quote ---
Turns out it's libmariadb3. It is installed by libmariadb-dev-compat, which just creates a symbolic link for libmysqlclient.so -> libmariadb3.so. Which indeed has version 3.3.8, which in turn seems to be the correct and current mariadb client library version. Checked by outputting mysql_get_client_info() in a C program (see below). I think this is a bug because it's not the corresponding mysql client version.
Does someone know if the upstream libariadb3 has this problem too?
--- Code: C [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#include <stdio.h>#include <mysql/mysql.h> void main (int argc, char* argv[]){ printf("%s\n", mysql_get_client_info());}
Seenkao:
Эта проблема как-то решается?
Я весь интернет перерыл, из-за этой проблемы. Использование MariaDB в Lazarus вызывает проблемы с подключением как в первопосте.
Терминал же выводит:
--- Quote ---mysql --version
mysql Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
--- End quote ---
----------------------------------------------------
Google translate:
Is this problem somehow solved?
I scoured the entire Internet because of this problem. Using MariaDB in Lazarus causes connection problems as in the first post.
The terminal outputs:
--- Quote ---mysql --version
mysql Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
--- End quote ---
Zvoni:
TSQLConnector has a protected Read-only Property "Proxy" which represents the "real" TSQLConnection
Maybe derive your own TSQLConnector-Class changing that Property to Public and read/write.
I think to remember there was something similar some years ago here on this Forum
Everything said: MariaDB 10.11 (See TS version-output) is from 2022....
So MySQL80 would be the correct one, not 5.6
Navigation
[0] Message Index
[#] Next page
[*] Previous page