mydumper和myloader使用参数解释
发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,$ mydumper --helpUsage:mydumper [OPTION...] multi-threaded MySQL dumpingHelp Options:-?, --help Show
千家信息网最后更新 2025年02月03日mydumper和myloader使用参数解释$ mydumper --help
Usage:
mydumper [OPTION...] multi-threaded MySQL dumping
Help Options:
-?, --help Show help options
Application Options:
-B, --database #需要备份的数据库,一个数据库一条命令备份,要不就是备份所有数据库,包括mysql.
-T, --tables-list #需要备份的表,用逗号分隔.
-o, --outputdir #备份文件目录.
-s, --statement-size #生成插入语句的字节数,默认1000000,这个参数不能太小,不然会报Row bigger than statement_size for tools.t_serverinfo.
-r, --rows #试图用行块来分割表,该参数关闭--chunk-filesize.
-F, --chunk-filesize #行块分割表的文件大小,单位是MB.
-c, --compress #压缩输出文件.
-e, --build-empty-files #即使表没有数据,也产生一个空文件.
-x, --regex #正则表达式匹配,如'db.table'.
-i, --ignore-engines #忽略的存储引擎,用逗号分隔.
-m, --no-schemas #不导出表结构.
-d, --no-data #不导出表数据.
-G, --triggers #导出触发器.
-E, --events #导出事件.
-R, --routines #导出存储过程.
-k, --no-locks #不执行共享读锁,警告:这将导致不一致的备份.
--less-locking #减到最小的锁在innodb表上.
-l, --long-query-guard #设置长查询时间,默认60秒,超过该时间则会报错:There are queries in PROCESSLIST running longer than 60s, aborting dump.
-K, --kill-long-queries #kill掉长时间执行的查询,备份报错:Lock wait timeout exceeded; try restarting transaction.
-D, --daemon #启用守护进程模式.
-I, --snapshot-interval #dump快照间隔时间,默认60s,需要在daemon模式下.
-L, --logfile #使用日志文件,默认标准输出到终端.
--tz-utc #备份的时候允许备份Timestamp,这样会导致不同时区的备份还原会出问题,默认关闭,参数:--skip-tz-utc to disable.
--skip-tz-utc
--use-savepoints #使用保存点记录元数据的锁信息,需要SUPER权限.
--success-on-1146 #Not increment error count and Warning instead of Critical in case of table doesn't exist.
--lock-all-tables #锁全表,代替FLUSH TABLE WITH READ LOCK.
-U, --updated-since #Use Update_time to dump only tables updated in the last U days.
--trx-consistency-only #Transactional consistency only.
-h, --host #The host to connect to.
-u, --user #Username with privileges to run the dump.
-p, --password #User password.
-P, --port #TCP/IP port to connect to.
-S, --socket #UNIX domain socket file to use for connection.
-t, --threads #备份执行的线程数,默认4个线程.
-C, --compress-protocol #在mysql连接上使用压缩协议.
-V, --version #Show the program version and exit.
-v, --verbose #更多输出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2.
$ myloader --help
Usage:
myloader [OPTION...] multi-threaded MySQL loader
Help Options:
-?, --help Show help options
Application Options:
-d, --directory #备份文件所在的目录.
-q, --queries-per-transaction #每个事务的query数量, 默认1000.
-o, --overwrite-tables #如果表存在则先删除,使用该参数,需要备份时候要备份表结构,不然还原会找不到表.
-B, --database #指定需要还原的数据库.
-s, --source-db #还原的数据库.
-e, --enable-binlog #启用二进制日志恢复数据.
-h, --host #The host to connect to.
-u, --user #Username with privileges to run the dump.
-p, --password #User password.
-P, --port #TCP/IP port to connect to.
-S, --socket #UNIX domain socket file to use for connection.
-t, --threads #使用的线程数量,默认4.
-C, --compress-protocol #连接上使用压缩协议.
-V, --version #Show the program version and exit.
-v, --verbose #更多输出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2.
Usage:
mydumper [OPTION...] multi-threaded MySQL dumping
Help Options:
-?, --help Show help options
Application Options:
-B, --database #需要备份的数据库,一个数据库一条命令备份,要不就是备份所有数据库,包括mysql.
-T, --tables-list #需要备份的表,用逗号分隔.
-o, --outputdir #备份文件目录.
-s, --statement-size #生成插入语句的字节数,默认1000000,这个参数不能太小,不然会报Row bigger than statement_size for tools.t_serverinfo.
-r, --rows #试图用行块来分割表,该参数关闭--chunk-filesize.
-F, --chunk-filesize #行块分割表的文件大小,单位是MB.
-c, --compress #压缩输出文件.
-e, --build-empty-files #即使表没有数据,也产生一个空文件.
-x, --regex #正则表达式匹配,如'db.table'.
-i, --ignore-engines #忽略的存储引擎,用逗号分隔.
-m, --no-schemas #不导出表结构.
-d, --no-data #不导出表数据.
-G, --triggers #导出触发器.
-E, --events #导出事件.
-R, --routines #导出存储过程.
-k, --no-locks #不执行共享读锁,警告:这将导致不一致的备份.
--less-locking #减到最小的锁在innodb表上.
-l, --long-query-guard #设置长查询时间,默认60秒,超过该时间则会报错:There are queries in PROCESSLIST running longer than 60s, aborting dump.
-K, --kill-long-queries #kill掉长时间执行的查询,备份报错:Lock wait timeout exceeded; try restarting transaction.
-D, --daemon #启用守护进程模式.
-I, --snapshot-interval #dump快照间隔时间,默认60s,需要在daemon模式下.
-L, --logfile #使用日志文件,默认标准输出到终端.
--tz-utc #备份的时候允许备份Timestamp,这样会导致不同时区的备份还原会出问题,默认关闭,参数:--skip-tz-utc to disable.
--skip-tz-utc
--use-savepoints #使用保存点记录元数据的锁信息,需要SUPER权限.
--success-on-1146 #Not increment error count and Warning instead of Critical in case of table doesn't exist.
--lock-all-tables #锁全表,代替FLUSH TABLE WITH READ LOCK.
-U, --updated-since #Use Update_time to dump only tables updated in the last U days.
--trx-consistency-only #Transactional consistency only.
-h, --host #The host to connect to.
-u, --user #Username with privileges to run the dump.
-p, --password #User password.
-P, --port #TCP/IP port to connect to.
-S, --socket #UNIX domain socket file to use for connection.
-t, --threads #备份执行的线程数,默认4个线程.
-C, --compress-protocol #在mysql连接上使用压缩协议.
-V, --version #Show the program version and exit.
-v, --verbose #更多输出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2.
$ myloader --help
Usage:
myloader [OPTION...] multi-threaded MySQL loader
Help Options:
-?, --help Show help options
Application Options:
-d, --directory #备份文件所在的目录.
-q, --queries-per-transaction #每个事务的query数量, 默认1000.
-o, --overwrite-tables #如果表存在则先删除,使用该参数,需要备份时候要备份表结构,不然还原会找不到表.
-B, --database #指定需要还原的数据库.
-s, --source-db #还原的数据库.
-e, --enable-binlog #启用二进制日志恢复数据.
-h, --host #The host to connect to.
-u, --user #Username with privileges to run the dump.
-p, --password #User password.
-P, --port #TCP/IP port to connect to.
-S, --socket #UNIX domain socket file to use for connection.
-t, --threads #使用的线程数量,默认4.
-C, --compress-protocol #连接上使用压缩协议.
-V, --version #Show the program version and exit.
-v, --verbose #更多输出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2.
备份
数据
文件
数据库
参数
输出
时间
线程
数量
日志
时候
更多
模式
目录
结构
逗号
会报
存储
查询
不同
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
数据库管理技术哪五阶段
巴彦淖尔进销存软件开发多少钱
微商下单管控软件开发
云服务器谷歌微软亚马逊
服务器能否自己升级内存
国际网络安全融资
2020高考院校录取博雅数据库
用云服务器离线下载
网络安全以及危害
霜与服务器各团长评分
哈弗h5手机网络安全吗
质量好的erp软件开发
数据库主机怎么看
数据库技术自考
ieee数据库名字
关于网络安全的钢笔书法
讨论宣传网络安全知识主题班会
捷顺系统服务器
密云区综合软件开发包括什么
问道手游如何看服务器搭配
旅游与互联网 科技结合
大班网络安全知识教案
软件开发或者科技制造是啥专业
信息社会 网络安全
服务器安全狗不能上网
ieee数据库名字
软件开发合同的在哪儿备案
网络安全宣传稿供电公司
网络安全的诗歌
网络安全专家陈国兴