show databases;
create database DB명;
drop database DB명;
create database bbb;
mysqldump -u root -p aaa > aaa.sql
mysql -u root -p bbb < aaa.sql
참고
https://www.codingfactory.net/11333
https://github.com/datacharmer/test_db