mysql loader_mysql之 myloader原理介绍

48304ba5e6f9fe08f3fa1abda7d326ab.png

myloader --help

Usage:

myloader [OPTION...] multi-threaded MySQL loader

Help Options:

-?, --help Show help options

Application Options:

-d, --directory Directory of the dump to import之前备份好的现在需要导入的文件夹

-q, --queries-per-transaction Number of queries per transaction, default 1000每次事物执行的查询数量,默认是1000

-o, --overwrite-tables Drop tables if they already exist如果要恢复的表存在,则先drop掉该表,使用该参数,需要备份时候要备份表结构

-B, --database An alternative database to restore into还原到指定的数据库

-s, --source-db Database to restore选择被还原的数据库,将这个数据库数据还原到--database指定的数据库里

-e, --enable-binlog Enable binary logging of the restore data启用还原数据的二进制日志

-h, --host 连接的主机名

-u, --user 用来备份的用户名

-p, --password 用户密码

-P, --port 连接端口

-S, --socket 使用socket通信时的socket文件

-t, --threads 开启的备份线程数,默认是4

-C, --compress-protocol 压缩与mysql通信的数据

-V, --version 显示版本号

-v, --verbose 输出信息模式, 0 = silent, 1 = errors, 2 = warnings, 3 = info, 默认为2

48304ba5e6f9fe08f3fa1abda7d326ab.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值