备份数据库,备份表
导出数据库,表结构+数据
# mysqldump -h数据库地址 -u用户名 -p密码 数据库名 > 导出的文件名 > mysqldump -hlocalhost -uroot -p123456 db_name > ./db_name.sql
导出数据库,仅表结构。
【linux】 【mysql】 【SQL】 【数据库】 【控制台】 【脚本】 【test】 …
Ideas, releases, practical guides, and perspectives from the people building with MySQL.