#1 (permalink)  
Old 06-19-2009, 03:07 PM
SuperBaby's Avatar
Registered User
 
Join Date: Nov 2003
Location: Malaysia
Posts: 289
SuperBaby
Question Upgrade from MySQL4 to MySQL5. Will my scripts stop working?

I am currently running PHP 5.2.9 but I am still using MySQL4. I am running a lot of Perl and PHP scripts (that use MySQL database) in my websites. I would like to upgrade to MySQL5 but I worry that my scripts will stop working. Will my scripts stop functioning?

After upgrading and if there are problems, can I switch back to MySQL4?
__________________
SuperBaby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-20-2009, 02:04 AM
Registered User
 
Join Date: Apr 2009
Posts: 155
InstaCarma_Tech is on a distinguished road
Stop the MySQL service and take a backup of all your databases first. Then you can upgrade the MySQL . Note that you will have to recompile PHP after the upgrade.
__________________
InstaCarma
Outsourced Web Hosting Technical Support and Server Management

To visit out Blog , click here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-20-2009, 07:10 AM
SuperBaby's Avatar
Registered User
 
Join Date: Nov 2003
Location: Malaysia
Posts: 289
SuperBaby
Thanks for the advice. But do you think it is likely my scripts will give problems after upgrading?
__________________
SuperBaby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-22-2009, 08:35 AM
Registered User
 
Join Date: Mar 2003
Posts: 78
pjman is on a distinguished road
Should be safe.

I had the same predicament last year. Should I upgrade MYSQL from 4.0.x to 5, when I had to upgrade PHP to 5? I chose to keep MYSQL 4.0x. I'm about to upgrade next week. From all my research, I here that the jump to MYSQL 4.1x is a pain, but very do-able. And the leap to MYSQL 5, is easy.

I haven't heard anyone report big problems with any scripts of any kind when moving to MYSQL to 5. If you hear anything, I would love to know.

Good Luck....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-22-2009, 09:34 AM
Registered User
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 385
PlatinumServerM is on a distinguished road
Upgrading from mysql4 to mysql5 sometimes does cause problems with existing databases/scripts. Sometimes it goes smoother than others. Always make full backups just in case and you should be fine if something goes wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-22-2009, 10:36 AM
UBERHOST's Avatar
Registered User
 
Join Date: Jan 2008
Location: California, US
Posts: 98
UBERHOST is on a distinguished road
Adding to all of the above, I'd say that if you have scripts so outdated that they would be broken by upgrading MySQL, such scripts pose a security hazard to your server.
__________________

click logo to visit us for dedicated
cPanel servers and more
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Downgrading MySQL5. to MySQL4. in cPanel u1983 cPanel Newbies 2 11-18-2008 08:59 AM
whm (mysql5 to mysql4 ??) xserverx cPanel and WHM Discussions 4 01-18-2008 04:33 PM
MySQL4.1 or MySQL5 for PHP5 anoetic cPanel and WHM Discussions 1 08-06-2007 07:23 AM
mysql5 - safe to upgrade? scripts compatible? heavypredator cPanel and WHM Discussions 2 01-22-2007 08:27 AM
Urgent help reqd Downgrading from MySQL5 to MySQL4 mydomain cPanel and WHM Discussions 8 05-29-2006 03:52 PM


All times are GMT -5. The time now is 07:15 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc