PDA

View Full Version : How do I upgrade current MySQL v3.x to v4.x via Updater


tcong
30th March 2006, 07:38 AM
Wonder who do I perform an upgrade of MySQL server to v4.1.x using Plesk Updater?

Is there any other simplier method other than binary install using root command prompt?

>>
Fedora Core 2, Plesk 8.0.0, MySQL 3.28.x

eilko
30th March 2006, 07:43 AM
you can't update mysql by the plesk updater, you need an update of mysql by yum or up2date

tcong
30th March 2006, 07:56 AM
Will it be safe enough such that it will cause server downtime? Or Up2date will be quite an automatic update?

I mean, will Up2date detect Plesk default mysql installed location?

Highland
30th March 2006, 08:57 AM
I'm going to assume you have Yum installed. If you don't, go get it.

Edit your yum.conf file (usually in the /etc directory) and add the following lines

[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/$releasever/


Now run
#yum check-update

You should see some mysql packages listed in there (current ART release is 4.1.18)
Now we run
#yum upgrade mysql
If you are upgrading from any version prior to 4.1.x you then need to edit /etc/my.cnf and add this line under [mysqld]
old_passwords=1

Restart mysql and you should be set with 4.1.18 without problems

dimensions
1st April 2006, 03:22 AM
I cant find yum.conf in my /etc folder?
How do i get it?

Highland
3rd April 2006, 09:23 AM
Do you have Yum installed?

#rpm -q yum

ashwin_acharya
6th October 2006, 02:11 AM
Hi,

Iam upgrading mysql on plesk 7.5.x platform iwouldliketoknow whetherto edit my.cnf after upgrading or before doing it.

Sorry for dum que but pleaseletme know.

Thanks

Ashwin

Highland
9th October 2006, 09:21 AM
Edit it after upgrading. Be sure to restart mysql after you do.

ColdFire
10th October 2006, 07:03 AM
Just a few words to say that this procedure works fine. I've a plesk 8 on FC2, and I upgraded MySQL from 3.2x to 4.x with yum successfully.

Bavarius
21st October 2006, 12:46 PM
Thanks for the great description!

Unfortunately, I can now no longer start MySQL!
/etc/init.d/mysqld start
brings: "A timeout error occurred trying to start MySQL Daemon"

I read somewhere else that one cannot do that at root level (I a logged in as root via Putty). What else should I do (from another site I read we should log in as user mysql but what password would that be??)

Can you please help me? Many thanks!