I am trying to install pdo_mysql on my CentOS server. I have PDO installed already; phpinfo() tells me that pdo_sqlite is active.
So I run the command
pecl install pdo_mysql
However, this errors out with the message
checking for MySQL support for PDO... yes, shared
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_query in -lmysqlclient... no
configure: error: mysql_query missing!?
I’ve ensured that the extensions have been declared in my php.ini, also.
I’ve had a look around on the web and can’t find anything to help.
Oh, and if it matters, I’m running PHP 5.3.3.
Thanks
I’ll post the solution here in case it helps others.
I tried running
but kept receiving the error
Solution was simple (just not obvious to me at first) just run
Apache restart and PDO_mysql working.