Unix Technical Forum

Easiest Way To Replicate DB

This is a discussion on Easiest Way To Replicate DB within the MySQL General forum forums, part of the MySQL category; --> I am doing tests so I want to easy take my DB and make a full copy of it ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:40 AM
John Kopanas
 
Posts: n/a
Default Easiest Way To Replicate DB

I am doing tests so I want to easy take my DB and make a full copy of
it into a test db everytime I want to test something against the
non-produciton version of DB. What is the easiest way to do this.

So I have a DB called "backlog" and I want to copy it's structure and
data into "backlog_test" with ease :-). Any sexy suggetions? :-)

Your Friend,

John

--
John Kopanas
john@kopanas.com

http://www.kopanas.com
http://www.cusec.net
http://www.soen.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:40 AM
Philip Hallstrom
 
Posts: n/a
Default Re: Easiest Way To Replicate DB

> I am doing tests so I want to easy take my DB and make a full copy of
> it into a test db everytime I want to test something against the
> non-produciton version of DB. What is the easiest way to do this.
>
> So I have a DB called "backlog" and I want to copy it's structure and
> data into "backlog_test" with ease :-). Any sexy suggetions? :-)


This is what I do...

mysqldump -v --lock-tables=false backlog | mysql backlog_test

Not practical if your dataset is huge, but if it's not that big, works
great.

-philip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com