Duplicate a mysql database

| | Comments (0)
From time to time you have the need to duplicate an mysql database, here's how you do it:

mysqldump -u DB_user --password=DB_pass DB_name | mysql -u DB_user --password=DB_pass -h DB_host DB_name

Source

Categories

Leave a comment

About this Entry

This page contains a single entry by Niklas Bivald published on May 6, 2009 7:03 PM.

Contributing to Orbited was the previous entry in this blog.

Adding CSS width support in sIFR is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.21-en