0

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

Richard
  • 836
  • 2
  • 8
  • 21

2 Answers2

0

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

See what versions you have by running phpinfo();

user40696
  • 113
  • 5
  • 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
0

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.

Richard
  • 836
  • 2
  • 8
  • 21