1.创建数据库 create database newdb ; 2.复制数据库 mysqldump tyrb -u root -p1234 --add-drop-table | mysql newdb -u root -p1234