创建
CREATE DATABASE `test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
备份
mysqldump -u username -p --database test > test.sql
还原
mysql -u username -p
> source /path/to/zqxt.sql
CREATE DATABASE `test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysqldump -u username -p --database test > test.sql
mysql -u username -p
> source /path/to/zqxt.sql