Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have apache, php, and mysql all installed from source. When I update mySQL to the latest version (5.1.46), do I need to update anything on the php side for it to be able to work with the new version?

Many Thanks

Edit: I'm updating from 5.1.45

share|improve this question

2 Answers 2

See: http://forge.mysql.com/wiki/Which_PHP_Driver_for_MySQL_should_I_use

See what versions you have by running phpinfo();

share|improve this answer
Sorry if I was not clear. What I mean, is that the 'Client API Version' in PDO, mysql and mysql in phpinfo currently say 5.1.45. When I update to the latest version of mysql, do these need updating as well, or will they update automatically? –  Richard Apr 25 '10 at 20:21
The PDO docs say "PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to MySQL 3.x, 4.x and 5.x databases." So i don't see why they'd stop working on a minor version upgrade of mysql. phpinfo() should tell if the drivers are loaded or not. –  user40696 Apr 25 '10 at 20:27
up vote 0 down vote accepted

Well I upgraded MySQL and restarted apache, and it all appears to be working. The new version numbers show up in phpinfo() so it's all fine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.