issue with percona
Ref: [url=http://blog.cpanel.net/replacing-mysql-with-percona-in-11-36/]How to replace MySQL with Percona in 11.36 | cPanel Blog
Until recently this was working on a server for me, however with the latest update, it seems to be broken. Now when i execute a php script, it gives me the below error.
I have recompiled apache using easyapache already twice, but it doesn't seem to fix the issue. Any ideas ? Thanks
php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directoryI have recompiled apache using easyapache already twice, but it doesn't seem to fix the issue. Any ideas ? Thanks
-
We are also having this problem it has been temporarily resolved by creating a symlink to the .16 library cd /usr/lib64/ ln -s libmysqlclient.so.16 libmysqlclient.so.18 However easyapache is now failing with this: checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no Percona rpms installed: rpm -qa |grep PerconaPercona-Server-shared-compat-5.5.35-rel33.0.611.rhel5 Percona-Server-shared-56-5.6.16-rel64.0.el5 Percona-Server-client-56-5.6.16-rel64.0.el5 Percona-Server-devel-56-5.6.16-rel64.0.el5 Percona-Server-server-56-5.6.16-rel64.0.el5 0 -
Hello :) This is due to the change documented by Percona here: [url=http://www.mysqlperformanceblog.com/2014/03/10/percona-server-5-6-16-64-0-now-available/]Percona Server 5.6.16-64.0 is now available - MySQL Performance Blog Here is a snippet: [QUOTE]In order to comply with Linux distribution packaging standards Percona"s version of libmysqlclient has been renamed to libperconaserver.
A workaround to this issue would be to create a symbolic link:ln -s /usr/lib64/libperconaserverclient.so /usr/lib64/libmysqlclient.so
Then, run EasyApache to rebuild the PHP binaries. Note that Percona is not officially supported by cPanel so issues like this can arise from time to time when using software that cPanel does not test against. Thank you.0 -
Michael, Thanks for the reply! For some reason in my digging I couldn't find it. I will test this later and report back. 0 -
[quote="cPanelMichael, post: 1594231">Hello :) This is due to the change documented by Percona here: [url=http://www.mysqlperformanceblog.com/2014/03/10/percona-server-5-6-16-64-0-now-available/]Percona Server 5.6.16-64.0 is now available - MySQL Performance Blog Here is a snippet: A workaround to this issue would be to create a symbolic link: ln -s /usr/lib64/libperconaserverclient.so /usr/lib64/libmysqlclient.so
Then, run EasyApache to rebuild the PHP binaries. Note that Percona is not officially supported by cPanel so issues like this can arise from time to time when using software that cPanel does not test against. Thank you.
Thanks for the pointer. Testing this now.0 -
Issue fixed, thanks a lot. 0 -
[quote="cPanelMichael, post: 1594231">Hello :) This is due to the change documented by Percona here:
Ahem ;) [quote] A workaround to this issue would be to create a symbolic link:
Ticket 4645179 Well, this workaround is not clean and doesn't help matters. Following Percona's indications, we should use the original MySQL libraries. To do so we can install MySQL56-shared-5.6.16-3.cp1142.rpm Problem is that upcp believes that we don't need the package above and as suck it would uninstall it everytime it is run. Can we instruct upcp to keep the above mentioned package? In this was we can keep the system clean and ready for upgrades once that cPanel would support Percona officially.0 -
[quote="DaVinciDigital, post: 1594391"> Can we instruct upcp to keep the above mentioned package? In this was we can keep the system clean and ready for upgrades once that cPanel would support Percona officially.
Ok, I got a solution, thanks to some pointers from Richard. I'll update tomorrow (gotta do some more testing first).0 -
[quote="cPanelMichael, post: 1594231">Hello :) Then, run EasyApache to rebuild the PHP binaries. Note that Percona is not officially supported by cPanel so issues like this can arise from time to time when using software that cPanel does not test against. Thank you.
Although cPanel, really should look into offer Percona as an option for database. It is a very popular choice and a damn fine database engine. Thank you for the above code, is there a way as mentioned above to make the link permanent, or will this continue to work through updates?0 -
Feel free to contribute to the existing feature request for Percona: [url=http://features.cpanel.net/responses/percona-server-with-xtradb-support-optional-mysql-replacement]Percona Server with XtraDB Support (Optional MySQL Replacement) | cPanel Feature Requests The workaround provided should work through updates. Thank you. 0 -
FWIW, I fixed this by installing Percona-Server-shared-compat. Weirdly, its version 5.1 and the server version is 5.5, but its well into the php compile at this point, so it looks like its working. 0 -
The symbolic link thing worked for me too. In my case this problem was that libperconaserverclient.so didn't exist. So I symlinked it to libperconaserverclient.so.18 as shown below: root@rebuild [/usr/lib64]# ls -lah /usr/lib64/libperconaserverclient.so lrwxrwxrwx. 1 root root 39 Jul 28 16:29 /usr/lib64/libperconaserverclient.so -> /usr/lib64/libperconaserverclient.so.18* root@rebuild [/usr/lib64]#0
Please sign in to leave a comment.
Comments
11 comments