Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 23, 2004 6:59 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
how do i upgrade from MySQL version 3.23.58 to
mysql 4.

i'm a noobie and running on redhat 9 small


Last edited by crazymazey on Wed Jun 30, 2004 3:04 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Jun 23, 2004 12:33 pm 
Offline
Senior Newbie

Joined: Sat Dec 06, 2003 6:02 am
Posts: 5
If you have DB's in 3.x right now, backup them up and remove mysql3, and to use mysql4 I personally prefer to grab the rpm's from there site.

http://dev.mysql.com/downloads/mysql/4.0.html (grab the Server, Client, Libs/Headers, Dynamic Client Libs, and Embedded server. Install all of them. and then you can reimport whatever data you may have.


Top
   
 Post subject:
PostPosted: Wed Jun 23, 2004 8:12 pm 
Offline
Senior Member

Joined: Sat Apr 03, 2004 7:44 am
Posts: 64
ICQ: 2623399
To "backup" and "restore" i recommend dumping rather than file copying.

To dump a database you can use the integrated "mysqldump" utility BEFORE removing mysql 3.23. You would simply issue
Code:
# dump [database name] > ~/db1.sql


You do that with all your databases (if you issue "mysqldump" without a database paramater it will dump all databases, including the "mysql" database which might not have the same structure in v4.x). Then, you remove v3.23, install v4.0 (v4.1 is still dev so its your choice) and atfer you get a new v4 working, open up the mysql client as root and import your databases from the files you dumped like this:
Code:
# mysql -p
create database [dumped database name];
use [dumped database name];
source ~/db1.sql;


You repeat the "create ... use .. source" steps for each dumped db.

This is a safe way to export import data. Dumping using "mysqldump" outputs pure SQL code which is sourced with no problems by future clients as oposed to copying the database files from the old v3.23 ...

Hope this helped. Cheers.


Top
   
 Post subject:
PostPosted: Thu Jun 24, 2004 5:10 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
i know a bit but i'm still not sure how to install all the mysql4 packages .

mysql3 was already installed, so i didnt have to do anything.

where do i place the packages i've d/l , and what commands do i do step by step, i'm soz if i'm asking to much but really need this help, cheers

also how do i unistall mysql3


Top
   
 Post subject:
PostPosted: Mon Jun 28, 2004 3:15 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
any help would be cool cheers


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 5:31 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
does anyone here do tutorials to help newbie linode users, or is it just a forum for advanced linux users ?

coss i noticed a tutorial section. but nothing in there about upgrading to mysql4
and upgrading to php 4.3

cheers for any help or pointers in the right direction to a forum for linux newbies


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 5:48 am 
Offline
Senior Member

Joined: Sat Apr 03, 2004 7:44 am
Posts: 64
ICQ: 2623399
Have you tried to follow the official docs?
They explain ho wto get mysql4 installed and cover all installation methods (rpm, sources, etc). Try look it up there first.


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 7:23 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
thanks mastabog :lol:


Last edited by crazymazey on Tue Jun 29, 2004 7:26 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 7:25 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
evane wrote:
If you have DB's in 3.x right now, backup them up and remove mysql3, and to use mysql4 I personally prefer to grab the rpm's from there site.

http://dev.mysql.com/downloads/mysql/4.0.html (grab the Server, Client, Libs/Headers, Dynamic Client Libs, and Embedded server. Install all of them. and then you can reimport whatever data you may have.


i unistalled mysql3 like said

and installed all the mysql4 packages like said.

but now when i try to start apache i get this error

Failed to start apache :

Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/auth_mysql.conf:
Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: libmysqlclient.so.10: cannot open shared object file: No such file or directory
[FAILED]


what do i do now ?


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 9:29 am 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
Try running the "ldconfig" command as root, and then try starting Apache up again - that might help.


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 10:11 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
Ciaran wrote:
Try running the "ldconfig" command as root, and then try starting Apache up again - that might help.


i tried typing idconfig as root and got reply
bash: idconfig: command not found

am i doing something wrong ?


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 10:16 am 
Offline
Senior Member

Joined: Wed Sep 17, 2003 7:39 pm
Posts: 124
crazymazey wrote:
Ciaran wrote:
Try running the "ldconfig" command as root, and then try starting Apache up again - that might help.


i tried typing idconfig as root and got reply
bash: idconfig: command not found

am i doing something wrong ?


It's an l, not an i.

And in my opinion this forum isn't really suited to barrages of questions like 'how do i upgrade the php on linux redhat small.' - try somewhere like www.linuxquestions.org which has a huge database of posts :)


Top
   
 Post subject: thanks i'll try that
PostPosted: Tue Jun 29, 2004 10:28 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2004 3:52 am
Posts: 10
thanks i'll try that

i'm sorry i thought this forum was a community of linode users to help each other out. :wink:

so what is this forum for ? please answer thanks


Top
   
 Post subject: Re: thanks i'll try that
PostPosted: Tue Jun 29, 2004 11:42 am 
Offline
Senior Member

Joined: Wed Sep 17, 2003 7:39 pm
Posts: 124
crazymazey wrote:
thanks i'll try that

i'm sorry i thought this forum was a community of linode users to help each other out. :wink:

so what is this forum for ? please answer thanks


You're right, but it's not really suited for users new to Linux. Personally, I just google pretty much everything and come up with what I need 90% of the time.


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 11:48 am 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
In the end if you RTFM and search for any problems and howtos on google.

Then if you dont find anything post a message with the problem and someone may be able to help.

It also helps if you set the subject of the thread to the actual problem.

Adam


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group