只导表结构完整语句:
mysqldump -h192.168.1.174 –port=3306 -uroot -p –routines –events –no-data –no-create-db test>test_s.sql
导出表数据完整语句(有二进制日志的时候):
mysqldump -h192.168.1.174 –port=3306 -uroot -p -F –routines –events –no-create-info=TRUE –master-data=2 –single-transaction –no-create-db test>test_s.sql
导出表数据完整语句(无二进制日志的时候):
mysqldump -h192.168.1.174 –port=3306 -uroot -p –routines –events –no-create-info=TRUE –single-transaction –no-create-db test>test_data.sql
导出部分表数据
mysqldump -h192.168.1.174 –port=3306 -uroot -p testdb –tables –no-create-info t_1 t_2……>testd.sql