Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.