I do compile the Percona 8 like below but cannot find where is libmysqlclient. i can see it in 5.7.
I got issues with Xtrabackup " XtraBackup Complains of Missing perl-DBD-MySQL" and other tool like Zabbix when i compile, it always ask for libmysqlclient
Is this lib include on source package or i need to yum or compile from other souce?
Well, you need to decide if you want to compile Percona MySQL 8 and use that, or use our RPMs. Why are you compiling? Also, why would you download mysql community rpm for this library? Why not download the percona library rpm?
I want to use Percona server and yes with compile, after compile that i cannot find libmysqlclient so that is a reason why i ask for install this lib by rpm from mysql community version.
Yes, i forget Percona may have this rpm but just wonder why i cannot see this lib after compile or i need to install separately and if i do so then do it conflict to my server?
@abh I just did a compile and I found the library. I’ll have ask one of the developers why it isn’t named libmysqlclient, but I imagine it is safe to simply create a symlink and then run an ldconfig before linking against it.
after that it show error and it not allow me to gmake
-- MERGE_CONVENIENCE_LIBRARIES LIBS clientlib;mytime;strings;vio;mysys;zstd
CMake Error at libmysql/CMakeLists.txt:368 (SET_TARGET_PROPERTIES):
SET_TARGET_PROPERTIES Can not find target to add properties to: mysqlclient
If “yum” direct from Percona then i see the libmysqlclient but im not seeing any libperconaserverclient. It’s bit strange if you ask me
[root@mail ~]# ls -lh /usr/lib64/mysql/
total 28M
-rw-r--r--. 1 root root 14M Oct 19 19:11 libmysqlclient.a
lrwxrwxrwx. 1 root root 24 Dec 25 11:12 libmysqlclient_r.so.18 -> libmysqlclient.so.18.1.0
lrwxrwxrwx. 1 root root 24 Dec 25 11:12 libmysqlclient_r.so.18.0.0 -> libmysqlclient.so.18.1.0
-rwxr-xr-x. 1 root root 3.5M Oct 19 18:53 libmysqlclient_r.so.18.1.0
lrwxrwxrwx. 1 root root 20 Oct 19 18:53 libmysqlclient.so -> libmysqlclient.so.21
lrwxrwxrwx. 1 root root 26 Dec 25 11:12 libmysqlclient.so.18 -> libmysqlclient_r.so.18.1.0
lrwxrwxrwx. 1 root root 24 Dec 25 11:12 libmysqlclient.so.18.0.0 -> libmysqlclient.so.18.1.0
-rwxr-xr-x. 1 root root 3.5M Oct 19 18:53 libmysqlclient.so.18.1.0
lrwxrwxrwx. 1 root root 25 Oct 19 18:53 libmysqlclient.so.21 -> libmysqlclient.so.21.1.26
-rwxr-xr-x. 1 root root 7.1M Oct 19 19:10 libmysqlclient.so.21.1.26
-rw-r--r--. 1 root root 99K Oct 19 19:11 libmysqlservices.a
drwxr-xr-x. 3 root root 17 Dec 25 11:12 mecab
drwxr-xr-x. 3 root root 4.0K Dec 25 11:12 plugin
drwxr-xr-x. 2 root root 69 Dec 25 11:12 private
You are saying “Why don’t you just download the pre-compiled binaries and create a symlink to libmysqlclient”, is that means i still compile as the way i want then download client with rpm version then job done?