Page 1 of 1

How to migrate from MySQL 3 to MySQL 4? Must I reinstall PHP

Posted: Wed Nov 07, 2007 9:28 am
by guarriman
Hi.

I've got installed PHP and MySQL from sources at '/usr/local/php' and '/usr/local/mysql'.

I want to install MySQL 4 at '/usr/local/mysql4', listening in another port. Must I install PHP again? Or must I only change my PHP configuration to talk in the new MySQL port?

Thank you very much.

Posted: Wed Nov 07, 2007 9:36 am
by Ambush Commander
You do not need to reinstall PHP unless you need to update your client libraries. You should try connecting to the alternate port first.

Posted: Wed Nov 07, 2007 10:06 am
by guarriman
Why might I update my client libraries?

I only connect MySQL through PHP. So I mustn't update them, right?

Posted: Wed Nov 07, 2007 12:45 pm
by RobertGonzalez
PHP talks to MySQL through a client. If the client library you are using is talking to MySQL3 then it will not talk to MySQL4 or 5. That is documented pretty well by now.

Installing MySQL4 should also install the MySQL4 client library, which is what PHP will need to interface properly with MySQL4.