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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

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

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

Post by guarriman »

Why might I update my client libraries?

I only connect MySQL through PHP. So I mustn't update them, right?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply