[MDEV-15220] Broken drop in replacement for mysql and mariadb 10.1 Created: 2018-02-06 Updated: 2018-02-13 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | libmariadb |
| Affects Version/s: | 10.2.12, 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anton Avramov | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian GNU/Linux 8.10 (jessie) amd64 |
||
| Description |
|
I've upgraded mariadb 10.1 to mariadb 10.2. As a result my apache2 doesn't want to start with the message:
The part of the conf file of interest is:
It uses apr_dbd for the apache to connect to mariadb The interesting think is that if I ldd apr_dbd_mysql.so it shows correct linking:
Where the /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 is a symlink to libmariadb.so.3 The only way to make apache start again is to extract the file /usr/lib/libmysqlclient.so.18.0.0 from 10.1 package and put it as /usr/lib/libmysqlclient.so.18 and execute ldconfig if I make /usr/lib/libmysqlclient.so.18 symlink to libmariadb.so.3 the apr_dbd_mysql.so doesn't load again. |
| Comments |
| Comment by Georg Richter [ 2018-02-13 ] |
|
apr_dbd_mysql calls my_init (instead of mysql_library_init()), which doesn't exist in MariaDB Connector/C. According to the MySQL documentation my_init part of the API, at least since 5.7 (when this function was also exported on Windows). |
| Comment by Sergei Golubchik [ 2018-02-13 ] |
|
georg, so what will we do? export my_init() ? |