Duplicate MySQL Database via Shell

Sometimes we need to duplicate a large mysql database and it can take too long to do it via phpmyadmin, sequel pro, and others.

This is a simple way to do it via Terminal with just 2 lines:

First create the duplicate database:

Make sure the user and permissions are all in place and:

That’s it!

Leave a comment