hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : MySQL 4.1 or 4.0
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 4.1 or 4.0

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-11-2006, 02:25 AM
hamidhossain hamidhossain is offline
Junior Guru Wannabe
 
Join Date: Apr 2006
Posts: 31

MySQL 4.1 or 4.0


Hi,

I have an old server with MySQL 4.0 contains lot of websites. I got a new server supplied with MySQL 4.1.

I tried to transfer my sites from my old server the new one using WHM copy. It gave me that all sites are moved succesfully!

When I checked my sites, i got shocked that they are not reading from database. I checked db using phpmyadmin. Every thing is moved.

The problem is in CharSet (I guess).

Is there any way to make my sites to work with MySQL 4.1?

if no, how to install MySQL 4.0 instead of 4.1 on my server?

Regards,
Hamid

Reply With Quote


Sponsored Links
  #2  
Old 05-11-2006, 03:59 AM
wonderpoint wonderpoint is offline
Junior Guru
 
Join Date: Aug 2004
Location: Mumbai
Posts: 183
Quote:
how to install MySQL 4.0 instead of 4.1 on my server?
Assuming you have a good copy of the database in 4.0 format in the old server.

1. Terminate all accounts in the new server.
2. Take a dump of database mysql in 4.0 format from shell.
3. Select MySQL 4.0 in WHM->Tweak Settings and click save.
4. It will prompt you to click on a link after 30 seconds. Wait for 30 seconds and click on the link.
5. Once the downgrade is complete, run /scripts/easyapache from SHELL.
6. Import database mysql back.
7. Restart the mysql server.

That should downgrade you from 4.1 to 4.0

There may be other better methods to downgrade, but this one worked for me

__________________
Linux Web Hosting Reviews

Reply With Quote
  #3  
Old 05-11-2006, 04:04 AM
firestarter firestarter is offline
Web Hosting Evangelist
 
Join Date: Oct 2004
Location: India
Posts: 491
You can set the default character set "default-character-set" parameter in the my.cnf to fix the issue.

__________________
ESC :wq!

Reply With Quote
Sponsored Links
  #4  
Old 05-11-2006, 05:04 AM
david510 david510 is offline
Web Hosting Master
 
Join Date: Oct 2004
Location: Kerala, India
Posts: 4,617
Did you try giving old password in my.cnf ?

Reply With Quote
  #5  
Old 05-11-2006, 02:24 PM
hamidhossain hamidhossain is offline
Junior Guru Wannabe
 
Join Date: Apr 2006
Posts: 31
Hi

wonderpoint,

I dont have the option 4.0 in my Tweek Settings. I have 5.0 and 4.1 only!

firestarter,

Any steps I can follow to change the charset? I tried using phpmyadmin but I couldn't find a way that i can change the charset.

david510,

I enabled old passwords in /etc/my.cnf => old_passwords=1

Waiting your help,
Hamid

Reply With Quote
  #6  
Old 05-11-2006, 02:34 PM
timdorr timdorr is offline
Formerly orange-y
 
Join Date: Nov 2001
Location: Atlanta, GA
Posts: 632
You don't want 4.0 anyways, that's really too old to be supporting them still. If anything, you should be moving to MySQL 5.0 (which you might as well do), which is the current production-quality version.

It sounds like you need to run EasyApache. Try building that with the Use System MySQL option under the PHP section. That might be able to fix it.

__________________
Former owner of A Small Orange
New owner of <COMING SOON>

Reply With Quote
  #7  
Old 05-11-2006, 02:43 PM
hamidhossain hamidhossain is offline
Junior Guru Wannabe
 
Join Date: Apr 2006
Posts: 31
timdorr,

You are right, going for newer versions is better.

Ok, if I used tweek settings and updated to MySQL 5. Do you think i will get the same problem again? I am using php 4 and I don't think it will be accepted to update to php 5 because all the scripts available in the server are going to STOP!

any suggestions?
Hamid

Reply With Quote
  #8  
Old 05-11-2006, 02:45 PM
LayerSolutions LayerSolutions is offline
Premium Member
 
Join Date: Dec 2005
Location: United States
Posts: 473
I dont think you need php5 to use MySQL 5 it works with php4.

__________________
LayerSolutions.Net | Your Technology Experts!
■ Experts in setting up, configuring, securing, and managing Linux & Windows servers.
■ Experts with almost all control panels, scripts, apps, and softwares.
■ Experts Guaranteed Work.

Reply With Quote
  #9  
Old 05-11-2006, 03:02 PM
hamidhossain hamidhossain is offline
Junior Guru Wannabe
 
Join Date: Apr 2006
Posts: 31
I used EasyApache from WHM and that refreshed the whole system. I checked some of the hosted sites and unfortunately, they still not working.

I am going to upgrade to mysql 5 but i don't think it is going to work smoothly.

Hamid

Reply With Quote
  #10  
Old 05-11-2006, 03:03 PM
LayerSolutions LayerSolutions is offline
Premium Member
 
Join Date: Dec 2005
Location: United States
Posts: 473
Pay a sys admin to revert your server back to mysql4

__________________
LayerSolutions.Net | Your Technology Experts!
■ Experts in setting up, configuring, securing, and managing Linux & Windows servers.
■ Experts with almost all control panels, scripts, apps, and softwares.
■ Experts Guaranteed Work.

Reply With Quote
  #11  
Old 05-11-2006, 03:07 PM
LayerSolutions LayerSolutions is offline
Premium Member
 
Join Date: Dec 2005
Location: United States
Posts: 473
Check out this link:

http://forums.cpanel.net/showthread....ght=back+mysql

or

You can upgrade your old server to MySQL 4.1 and it will update the mysql databases automatically.

__________________
LayerSolutions.Net | Your Technology Experts!
■ Experts in setting up, configuring, securing, and managing Linux & Windows servers.
■ Experts with almost all control panels, scripts, apps, and softwares.
■ Experts Guaranteed Work.


Last edited by LayerSolutions; 05-11-2006 at 03:12 PM.
Reply With Quote
  #12  
Old 05-11-2006, 03:13 PM
hamidhossain hamidhossain is offline
Junior Guru Wannabe
 
Join Date: Apr 2006
Posts: 31
FrozenHost,

Money is not an issue, I want to learn (smile).

Hamid

Reply With Quote
  #13  
Old 05-11-2006, 03:14 PM
LayerSolutions LayerSolutions is offline
Premium Member
 
Join Date: Dec 2005
Location: United States
Posts: 473
I gave you all the possible solutions.

__________________
LayerSolutions.Net | Your Technology Experts!
■ Experts in setting up, configuring, securing, and managing Linux & Windows servers.
■ Experts with almost all control panels, scripts, apps, and softwares.
■ Experts Guaranteed Work.

Reply With Quote
  #14  
Old 05-11-2006, 05:08 PM
Chrysalis Chrysalis is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: UK
Posts: 1,029
4.0 isnt been updated anymore but I wouldnt goto 5.0 just yet, 4.1 is your best bet.

__________________
Chris Collins
Hostingfreak.net
Directadmin Hosting in europe
www.hostingfreak.net

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?