Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing mySQL Database on a new system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dnamroud
Guru
Guru


Joined: 01 Jun 2005
Posts: 346
Location: Canada

PostPosted: Tue Jun 20, 2006 7:53 pm    Post subject: Installing mySQL Database on a new system Reply with quote

Hello

I would like to install my MySQL Database file on a new system that I installed...

the only difference is both systems are not using the same version:
the old system is running under 4.0.23-r2 and the newest version installed is 4.1.20

I need to keep the user login/password + data + structure...
My database contians more than 100 GB of data

Can I copy files from oldsystem/var/lib/mysql/* to newsystem/var/lib/mysql or how
Thank you in advance

Dany
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Tue Jun 20, 2006 10:36 pm    Post subject: Reply with quote

The cleanest way to achieve what you want would probably be to use mysqldump on the old system and restore the dumps on the new one.
Back to top
View user's profile Send private message
digitalenemy
n00b
n00b


Joined: 08 Nov 2004
Posts: 63
Location: germany

PostPosted: Wed Jun 21, 2006 10:46 am    Post subject: Reply with quote

on gentoo.org is a good guide for upgrading mysql and how to backup it
http://www.gentoo.org/doc/en/mysql-upgrading.xml
Back to top
View user's profile Send private message
dnamroud
Guru
Guru


Joined: 01 Jun 2005
Posts: 346
Location: Canada

PostPosted: Wed Jun 21, 2006 12:19 pm    Post subject: Reply with quote

Thank you guys for your answers...
one more question:
instead of installing mysql 4.1.20 I will install version 4.0.25, do I need to proceed with the mysqldump...

I am worrying of using this command because it's my first time, and our database is a huge one, I need to keep my Database up and running as I can...

Do you know if there is any big difference in structure between version 4.0.25 and 4.0.23..

thank you a lot

Dany
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Wed Jun 21, 2006 2:24 pm    Post subject: Reply with quote

The dump itself should be harmless in any case, but you should read the appropriate documentation to make sure that the resulting dump meet your requirements, as there are quite a bit of options to choose from.
I doubt there are any major changes in between 4.0.25 and 4.0.23, but you should check out the mysql changelog if you're uncertain.
Back to top
View user's profile Send private message
digitalenemy
n00b
n00b


Joined: 08 Nov 2004
Posts: 63
Location: germany

PostPosted: Sat Jul 01, 2006 1:13 pm    Post subject: Reply with quote

you can duplicate the database and do some tests for yourself, before migrating your whole system to it... an other way is to set up a backup or a slave database which replicates itself. this would be a more clean approach if there is no downtime or inconsistency of the database is possible
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum