Comments - Unable to get pdo_mysql to work with CentOS 6 and MariaDB 5.5.32

10 years, 7 months ago Sergei Golubchik

Did you compile pdo_mysql.so yourself? Against MySQL client library from Oracle? That would explain the error you're seeing.

When we added symbol versioning to our client library we carefully tried to keep it drop-in replacement and picked exactly the same versioning that CentOS mysql-libs package uses.

In this versioning logic, mysql_options has version libmysqlclient_16, because, indeed, it was present in the old libmysqlclient.so.16 and it haven't changed since. Thus it retained the old version.

MySQL client library from Oracle, on the other hand, has all symbols under the new libmysqlclient_18 version, even symbols that have not changed when the version was incremented. This makes Oracle libmysqlclient.so.18 incompatible with CentOS mysql-libs and with our client library.

I would recommend you to recompile pdo_mysql.so using either CentOS or our libmysqlclient.so

 
10 years, 7 months ago Justin Davis

Found the problem. 'Something' installed it's own version of pdo_mysql.so instead of either yours or one compiled against mysql. Did a yum install yum install php-mysql-5.4.19 from the remi repo and it fixed the problem instantly. Thanks for the heads up.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.