Home » Performance » MySQL » New server setup
New server setup [message #3236] Wed, 02 July 2008 00:20 Go to next message
ramakrishna  is currently offline ramakrishna
Messages: 4
Registered: July 2008
Location: Fremont
Junior Member

I have 8 gig of innodb database running on redhat 5 machine i want copy mysql directory to another machine and start new server is it possible? Can any one tell exact plan.Thanks in advance.
Re: New server setup [message #3237 is a reply to message #3236 ] Wed, 02 July 2008 02:58 Go to previous messageGo to next message
larvus  is currently offline larvus
Messages: 5
Registered: June 2008
Location: india
Junior Member

find out ur mysql directory

mostly this be the dir /var/lib/mysql

all mysql datbase and tables are reside here . just stop the service and tar zip the directory structure.

# cd /var/lib/mysql

#tar -zcf /root/Desktop/mysqlold.tar.gz *

copy tar file form desktop to the new server's data directory and unzip / untar it.

if u want to copy a single database just use # mysqldump

By Larvus


Larvus
Re: New server setup [message #3242 is a reply to message #3237 ] Wed, 02 July 2008 06:05 Go to previous message
ramakrishna  is currently offline ramakrishna
Messages: 4
Registered: July 2008
Location: Fremont
Junior Member

Thanks for your reply.
Do I need to change any permissions to that directories in new server.
Previous Topic:Allocating memory error
Next Topic:Needed AutoBackup mysql tool for windows 2000
Goto Forum:
  



Current Time: Fri Nov 21 02:12:34 EST 2008

Total time taken to generate the page: 0.01002 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge