# New server setup

**URL:** <https://forums.percona.com/t/new-server-setup/824>\
**Category:** Other MySQL® Questions\
**Created:** [July 1, 2008, 10:50pm UTC](https://forums.percona.com/t/new-server-setup/824 "2008-07-01T22:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramakrishna](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@ramakrishna](https://forums.percona.com/u/ramakrishna)\
**Post date:** [July 1, 2008, 10:50pm UTC](https://forums.percona.com/t/new-server-setup/824/1 "2008-07-01T22:50:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![larvus](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@larvus](https://forums.percona.com/u/larvus)\
**Post date:** [July 2, 2008, 1:28am UTC](https://forums.percona.com/t/new-server-setup/824/2 "2008-07-02T01:28:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ramakrishna](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@ramakrishna](https://forums.percona.com/u/ramakrishna)\
**Post date:** [July 2, 2008, 4:35am UTC](https://forums.percona.com/t/new-server-setup/824/3 "2008-07-02T04:35:21Z")

</div>

Thanks for your reply.  
Do I need to change any permissions to that directories in new server.
