Go Back   Zervex Forums > ServerCP Community > Q&A
User Name
Password
Register FAQ Members List Calendar Mark Forums Read
Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2007, 02:28 PM
rhenderson rhenderson is offline
Registered User
 
Join Date: Jan 2007
Posts: 11
rhenderson is on a distinguished road
MYSql Update

Hi,

I have been reading another thread about updating MySQL from 4.0 to 4.1, which I really to do because of the problems I keep running into with the latin charsets.

Anyway I understand the only thing that needs updating is the MySQL server part since the rest is alread running 4.1.xx.

I got the RPM from MySQL website and when I tried to install it I had a perl-DBI dependency which I took care through yum. Now when I try to install the RPM it errors because it conflicts with the 4.0.xx version which makes sense. At this point I am a little stuck. if I uninstall the 4.0 RPM will this kill all the MySQL data on the server? I don't just want to remove 4.0 for 4.1. I want to update 4.1 leaving the data intact.

Thanks in advance,
Randy Henderson
Reply With Quote
  #2  
Old 02-22-2007, 11:35 AM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: MYSql Update

http://xd networks . net/files/mysql/rpms/4.1/

Sorry i don't want Google caching that URL

pull the RPM's (if you like)
wget link1 link2 link3 etc

(make sure its the 32bit not 64bit...)

type rpm -Uvh MySQL*

Let me know how it goes.
__________________
http://kthxbyecrymore.com/
Reply With Quote
  #3  
Old 02-22-2007, 11:37 AM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: MYSql Update

sorry.

then type

/etc/init.d/mysql restart
__________________
http://kthxbyecrymore.com/
Reply With Quote
  #4  
Old 02-23-2007, 07:25 AM
rhenderson rhenderson is offline
Registered User
 
Join Date: Jan 2007
Posts: 11
rhenderson is on a distinguished road
Re: MYSql Update

Thanks for the post... Here is what I get after getting the rpm's
ls -l
total 27248
-rw-r--r-- 1 root root 4212831 Jul 24 2006 MySQL-bench-4.1.21-0.glibc23.i386.rpm
-rw-r--r-- 1 root root 4384873 Jul 24 2006 MySQL-client-4.1.21-0.glibc23.i386.rpm
-rw-r--r-- 1 root root 2842463 Jul 24 2006 MySQL-devel-4.1.21-0.glibc23.i386.rpm
-rw-r--r-- 1 root root 2960505 Jul 24 2006 MySQL-embedded-4.1.21-0.glibc23.i386.rpm
-rw-r--r-- 1 root root 12235121 Jul 24 2006 MySQL-server-4.1.21-0.glibc23.i386.rpm
-rw-r--r-- 1 root root 1212202 Jul 24 2006 MySQL-shared-4.1.21-0.glibc23.i386.rpm

rpm -Uvh MySQL*
error: Failed dependencies:
MySQL-shared-compat >= 4.0.23 is needed by (installed) dsm-system-3.2-11
5.centos4.zvx.i386
Reply With Quote
  #5  
Old 02-23-2007, 08:33 AM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: MYSql Update

try installing the shared one first.

like

rpm -Uvh MySQL-shared-4.1.21-0.glibc23.i386.rpm

If it installs.

rm MySQL-shared-4.1.21-0.glibc23.i386.rpm

rpm -Uvh MySQL*

let me know.
__________________
http://kthxbyecrymore.com/
Reply With Quote
  #6  
Old 02-23-2007, 09:04 PM
rhenderson rhenderson is offline
Registered User
 
Join Date: Jan 2007
Posts: 11
rhenderson is on a distinguished road
Re: MYSql Update

Looks like it is still the same

#rpm -Uvh MySQL-shared-4.1.21-0.glibc23.i386.rpm
error: Failed dependencies:
MySQL-shared-compat >= 4.0.23 is needed by (installed) dsm-system-3.2-115.centos4.zvx.i386
Reply With Quote
  #7  
Old 02-24-2007, 07:04 AM
defunctiam defunctiam is offline
Registered User
 
Join Date: Dec 2002
Location: VA
Posts: 79
defunctiam is on a distinguished road
Re: MYSql Update

You need to download and install the Shared-Compat rpm.

It is listed under "Shared compatibility libraries".
Reply With Quote
  #8  
Old 02-24-2007, 01:00 PM
rhenderson rhenderson is offline
Registered User
 
Join Date: Jan 2007
Posts: 11
rhenderson is on a distinguished road
Re: MYSql Update

Thanks, that did help. I think I got it now.
Reply With Quote
  #9  
Old 02-26-2007, 07:34 AM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: MYSql Update

Thats what i thought too, good catch!

Did you get it running?
__________________
http://kthxbyecrymore.com/
Reply With Quote
  #10  
Old 02-27-2007, 10:34 PM
R1Lover R1Lover is offline
Registered User
 
Join Date: Feb 2007
Posts: 30
R1Lover is on a distinguished road
Re: MYSql Update

I can't seem to find the updates for CentOS4

any ideas, I'm looking to upgrade to 4.1.21 from 4.0
Reply With Quote
  #11  
Old 02-28-2007, 12:45 AM
R1Lover R1Lover is offline
Registered User
 
Join Date: Feb 2007
Posts: 30
R1Lover is on a distinguished road
Re: MYSql Update

Quote:
Originally Posted by Jeremy
http://xd networks . net/files/mysql/rpms/4.1/

Sorry i don't want Google caching that URL

pull the RPM's (if you like)
wget link1 link2 link3 etc

(make sure its the 32bit not 64bit...)

type rpm -Uvh MySQL*

Let me know how it goes.


Thank you so much for your post... you saved the day for me.
Reply With Quote
  #12  
Old 02-28-2007, 05:38 AM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: MYSql Update

Good to know that helped.
__________________
http://kthxbyecrymore.com/
Reply With Quote
  #13  
Old 02-28-2007, 07:05 PM
R1Lover R1Lover is offline
Registered User
 
Join Date: Feb 2007
Posts: 30
R1Lover is on a distinguished road
Re: MYSql Update

That upgrade seemed to go fine.... but I'm having some trouble with importing a database now.

So I need to re-compile php after the mysql update ?

Thank you

Sorry I'm new to this.

Reply With Quote
  #14  
Old 03-01-2007, 01:49 AM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: MYSql Update

What do u mean by import?

You shouldn't export/delete anything.

What PHPv are you running? Theres no reason to compile anything.
__________________
http://kthxbyecrymore.com/
Reply With Quote
  #15  
Old 03-01-2007, 08:48 PM
R1Lover R1Lover is offline
Registered User
 
Join Date: Feb 2007
Posts: 30
R1Lover is on a distinguished road
Re: MYSql Update

Quote:
Originally Posted by Jeremy
What do u mean by import?

You shouldn't export/delete anything.

What PHPv are you running? Theres no reason to compile anything.

I corrected the issue, I guess I should have said restoring a database.

The issue I had was in servercp the only options for user permissions when using the mysql interface are read/write, read, write. There are no options to allow all. Well I had to use phpmyadmin to set the permissions correctly and then it worked great.
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:06 PM.


Powered by vBulletin Version 3.5.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.