hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Mysql problem please help
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Mysql problem please help

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2006, 09:59 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
Unhappy

Mysql problem please help


Hello every one

please help me in this

My main hdd in linux server faild ( it is read only Now file system )

then DC put a new hdd for me and put the old one as secondary

But I faced one problem that Mysql in old hdd is 4.0 and in new is 4.1.18

then I have mysql folder

How I can upgrade mysql databases in old one ???

cause i need to copy it again to new hdd ( primary hdd )

Please help me with any idea or steps


Reply With Quote


Sponsored Links
  #2  
Old 05-24-2006, 10:02 AM
WebzPro WebzPro is offline
Aspiring Evangelist
 
Join Date: Mar 2004
Location: Chicago IL
Posts: 399
Are you saying before the HD replacement that you were running MySQL 4.1.8 and they put on the new drive 4.0?

__________________
WebzPro.com Hosting Solutions Since 2004
CloudLinux OS - LiteSpeed - Softaculous - RVSiteBuilder Pro
24/7 Support - Phone & Help Desk A+ BBB Rating
LiteSpeed Powered Servers Daily/Weekly Backups • CPanel/WHM

Reply With Quote
  #3  
Old 05-24-2006, 10:06 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
the new drive which it si primary now Mysql is 4.1

and old drive ( secondary one ) mysql is 4.0

I need to copy mysql databases from secondary drive to primary drive

Reply With Quote
Sponsored Links
  #4  
Old 05-24-2006, 10:08 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
control panel is cpanel

Reply With Quote
  #5  
Old 05-24-2006, 10:09 AM
wonderpoint wonderpoint is offline
Junior Guru
 
Join Date: Aug 2004
Location: Mumbai
Posts: 183
Downgrade MySQL to 4.0 on the new primary.
Copy MySQL files from secondary.
Then upgrade mysql to 4.1 in primary.

__________________
Linux Web Hosting Reviews

Reply With Quote
  #6  
Old 05-24-2006, 10:14 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
I try to downgrade mysql in the past But I can't did that

How I can downgrade it ???

Reply With Quote
  #7  
Old 05-24-2006, 10:17 AM
wonderpoint wonderpoint is offline
Junior Guru
 
Join Date: Aug 2004
Location: Mumbai
Posts: 183
This may help.

Downgrading MySQL 4.1 to MySQL 4.0

If you are not confident about it, its best to hire someone who can do it for you.

__________________
Linux Web Hosting Reviews

Reply With Quote
  #8  
Old 05-24-2006, 10:24 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
you can't downgrade mysql service to 4.0 from 4.1

you can downgrade only databases as dump file

Reply With Quote
  #9  
Old 05-24-2006, 10:30 AM
wonderpoint wonderpoint is offline
Junior Guru
 
Join Date: Aug 2004
Location: Mumbai
Posts: 183
You can always remove MySQL server 4.1 and install MySQL server 4.0. I don't see any reason why this is not possible. I have done this myself on many cPanel servers.

Reply With Quote
  #10  
Old 05-24-2006, 10:38 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
I enter whm and tweak setting and I don't found version 4.0 in mysql

I only found 4.1 and 5.0

and check box ( Use old style (4.0) passwords with mySQL 4.1 (required if you have problems with php apps authenticating)

this will not downgrade mysql

do you have steps to downgrade mysql please ???

Reply With Quote
  #11  
Old 05-24-2006, 10:49 AM
wonderpoint wonderpoint is offline
Junior Guru
 
Join Date: Aug 2004
Location: Mumbai
Posts: 183
You will have to downgrade cPanel to a stable build (i think 114 or before, I am not sure though) to get MySQL 4.0 option.

Reply With Quote
  #12  
Old 05-24-2006, 11:16 AM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
can I upgrade mysql databses with any way rather than do this ???

from olddrive/var/lib/mysql

If I can upgarde these databases folders I can copy it and evreything will done

any more help please

Reply With Quote
  #13  
Old 05-24-2006, 01:05 PM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
still can't complete this any more help

Reply With Quote
  #14  
Old 05-24-2006, 01:30 PM
madguy24 madguy24 is offline
Web Hosting Guru
 
Join Date: May 2004
Location: India
Posts: 310
The best way I can imagine would be to downgrade the cPanel MySQL to 4.0 (I have done that successfully) expecting a downtime of around 30 mins, copy the mysql dir and then then upping to 4.1.

Otherway would be to copy the DBs to your localmachine or so which runs 4.0 (with same mysql root pass) and do a mysqldump --alldatabases --result-file=mysql4.sql (ofcourse with the other extra and necessary parameters for the mysqldump) , upload the mysql4.sql to the server and then cat mysql4.sql | mysql

These commands assume you have mysql pass in /root/.my.cnf and you are logged in as root. my 2 cents..may be others have better solutions..

Reply With Quote
  #15  
Old 05-24-2006, 01:35 PM
linuxlover linuxlover is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 149
Thanks for this

the better is the old one and I know it But the problem here that my cpanel is new version stable and I don't found Mysql 4.0 in it

this is the problem sir

so my question how to downgrade mysql service from 4.1 to 4.0

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Sales and Promos Roundup - October 7, 2011 Web Hosting News 2011-10-07 19:56:18
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?