[MDEV-19942] Default installation of mariadb-server doesn't allow clients to use client plugins Created: 2019-07-03  Updated: 2019-09-17  Resolved: 2019-07-05

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: 10.2, 10.3, 10.4
Fix Version/s: 10.2.26, 10.3.17, 10.4.7

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-20569 Plugin dialog could not be loaded (wr... Closed

 Description   

Some deb-based systems, e.g. Stretch, have a pre-installed libmariadbclient18 of Debian's packaging:

ii  libmariadbclient18:amd64      10.1.23-9+deb9u1               amd64        MariaDB database client library

It installs plugins into a very special folder:

$ ls -l /usr/lib/x86_64-linux-gnu/mariadb18/plugin/
total 108
-rw-r--r-- 1 root root 86048 Jun  7  2017 client_ed25519.so
-rw-r--r-- 1 root root 10200 Jun  7  2017 dialog.so
-rw-r--r-- 1 root root  6104 Jun  7  2017 mysql_clear_password.so

When mariadb-server of version 10.2+ is installed, it does not enforce upgrade of libmariadbclient18:

ii  libmariadbclient18:amd64      10.1.23-9+deb9u1               amd64        MariaDB database client library
ii  mariadb-client-10.2           10.2.25+maria~stretch          amd64        MariaDB database client binaries
ii  mariadb-client-core-10.2      10.2.25+maria~stretch          amd64        MariaDB database core client binaries
ii  mariadb-common                10.2.25+maria~stretch          all          MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf)
ii  mariadb-server                10.2.25+maria~stretch          all          MariaDB database server (metapackage depending on the latest version)
ii  mariadb-server-10.2           10.2.25+maria~stretch          amd64        MariaDB database server binaries
ii  mariadb-server-core-10.2      10.2.25+maria~stretch          amd64        MariaDB database core server files

So, the client plugins remain in the folder which MariaDB clients have nothing about, which later causes problems like

ERROR 1045 (28000): Plugin dialog could not be loaded: /usr/lib/mysql/plugin//dialog.so: cannot open shared object file: No such file or directory


Generated at Thu Feb 08 08:55:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.