快速复制db数据库的表结构以及数据到另一个数据库newdb的命令: mysqldump db -u root -p123456 --add-drop-table | mysql newdb -u root -p123456-u 数据库用户名-p登录密码,注意没有空格