mysqldump导出mysql数据

2022-08-18  本文已影响0人  doinb1517

简介

主要记录一下如何使用mysqldump导出mysql的数据

过程

mysqldump -uusername  -p -t -T /var/lib/mysql-files/ db_name table_name --fields-terminated-by='\t'

参数解释:
-t, --no-create-info Don't write table creation info.

-T, --tab=name Create tab-separated textfile for each table to given path. (Create .sql and .txt files.) NOTE: This only works if mysqldump is run on the same machine as the mysqld server.

--fields-terminated-by=name  Fields in the output file are terminated by the given string.

注意1:

注意2:

上一篇 下一篇

猜你喜欢

热点阅读