Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2008, 04:00 PM
itwasntme's Avatar
itwasntme itwasntme is offline
Senior Member
 
Join Date: Sep 2007
Posts: 142
Default Upgrade MySQL From 4.2.2 To 5.x: Do I Dare?

My VPS is currently using PHP 5.2.2 and MySQL 4.2.2-standard. I'm starting to be concerned about adding new domains with current software that recommends MySQL 5.x and thinking I should upgrade to MySQL 5.x before things get any more complicated.

The thing is, reading the info at MySQL is a little horrifying.

I see you have a tutorial on downgrading from MySQL 5 to version 4, but I didn't see one on doing the upgrade, which is also sort of ominous.

So, I have two questions:
  1. Does it make sense to do the upgrade?
  2. What is the best procedure?

According to what I can gather from what I've found, the procedure is as follows:
  1. Back up all the databases.
  2. Log in to WHM->Tweak Settings and set the MySQL version to 5.0.
  3. Log on to the server as root using SSH.
  4. Run the command
    Code:
    /scripts/mysqlup
    .
  5. Run
    Code:
    /buildapache/easyapache
    or maybe
    Code:
    /scripts/easyapache
    .
  6. If you find that phpMyAdmin reports the old version of MySQL for "MySQL Client Version", you need to recompile PHP by running the command
    Code:
    /scripts/makecpphp
  7. Run
    Code:
     /scripts/perlinstaller --force Bundle::DBD::mysql
    .
  8. Pray.

Aren't there quite a few settings for EasyApache that I would need to set or will it retain current settings as defaults when I run it?

Last edited by itwasntme; 09-20-2008 at 04:10 PM.
Reply With Quote
  #2  
Old 09-20-2008, 03:13 PM
itwasntme's Avatar
itwasntme itwasntme is offline
Senior Member
 
Join Date: Sep 2007
Posts: 142
Default Re: Upgrade MySQL From 4.2.2 To 5.x: Do I Dare?

I didn't get any replies on this, so today I went ahead and tried it.

It seems to have worked just fine, and I didn't need to run the command:
Code:
 /scripts/perlinstaller --force Bundle::DBD::mysql
I got one error with the mysqlup command:
Quote:
ERROR 1175 (HY000) at line 1: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
I have no idea what that means. I tried searching the cPanel forums and couldn't find any info on it. Hopefully, it's not going to be a problem...

I haven't encountered any issues with the sites yet, and my only Perl-based script that uses MySQL seems to be working just fine.

Last edited by itwasntme; 09-20-2008 at 04:10 PM.
Reply With Quote
  #3  
Old 09-21-2008, 02:54 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 2,020
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default Re: Upgrade MySQL From 4.2.2 To 5.x: Do I Dare?

Thanks for posting. With this one you want to be careful that its not going to mess up anything in the process. From what i'm seeing above it shouldn't be a problem at all. However, I'm going to keep an eye out on it.

If you google something like "cPanel MySQL 5 upgrade" you should be able to come up with some good articles on how to do this.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #4  
Old 09-21-2008, 03:40 PM
itwasntme's Avatar
itwasntme itwasntme is offline
Senior Member
 
Join Date: Sep 2007
Posts: 142
Default Re: Upgrade MySQL From 4.2.2 To 5.x: Do I Dare?

Thanks, Denis.

It looks like I am in good shape after the above procedure. I did get that error listed above, but haven't noticed any problems with MySQL thus far.

I posted on the cPanel forums to see if that error was something I needed to worry about, and so far have received one reply that tells me to ignore it.

I'm keeping my fingers crossed.
Reply With Quote
  #5  
Old 09-22-2008, 11:05 AM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 2,020
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default Re: Upgrade MySQL From 4.2.2 To 5.x: Do I Dare?

Sounds good, thanks for keeping us posted on this one.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply

Tags
dare, mysql, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:41 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.