国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > 文庫 > 正文

mydumper和myloader參數(shù)使用解說

2024-09-07 22:12:44
字體:
供稿:網(wǎng)友
      mydumper
     Usage:
     mydumper [OPTION...] multi-threaded MySQL dumping
  
     Help Options:
  -?, --help                  Show help options
  
Application Options:
  -B, --database              需要備份的數(shù)據(jù)庫,一個(gè)數(shù)據(jù)庫一條命令備份,要不就是備份所有數(shù)據(jù)庫,包括mysql。
  -T, --tables-list           需要備份的表,用逗號分隔。
  -o, --outputdir             備份文件目錄
  -s, --statement-size        生成插入語句的字節(jié)數(shù),默認(rèn)1000000,這個(gè)參數(shù)不能太小,不然會報(bào) Row bigger than statement_size for tools.t_serverinfo
  -r, --rows                  試圖用行塊來分割表,該參數(shù)關(guān)閉--chunk-filesize
  -F, --chunk-filesize        行塊分割表的文件大小,單位是MB
  -c, --compress              壓縮輸出文件
  -e, --build-empty-files     即使表沒有數(shù)據(jù),也產(chǎn)生一個(gè)空文件
  -x, --regex                 正則表達(dá)式匹配,如'db.table'
  -i, --ignore-engines        忽略的存儲引擎,用逗號分隔
  -m, --no-schemas            不導(dǎo)出表結(jié)構(gòu)
  -d, --no-data               不導(dǎo)出表數(shù)據(jù)
  -G, --triggers              導(dǎo)出觸發(fā)器
  -E, --events                導(dǎo)出事件
  -R, --routines              導(dǎo)出存儲過程
  -k, --no-locks              不執(zhí)行共享讀鎖 警告:這將導(dǎo)致不一致的備份
  --less-locking              減到最小的鎖在innodb表上.
  -l, --long-query-guard      設(shè)置長查詢時(shí)間,默認(rèn)60秒,超過該時(shí)間則會報(bào)錯(cuò):There are queries in PROCESSLIST running longer than 60s, aborting dump
  -K, --kill-long-queries kill掉長時(shí)間執(zhí)行的查詢,備份報(bào)錯(cuò):Lock wait timeout exceeded; try restarting transaction
  
  -D, --daemon                啟用守護(hù)進(jìn)程模式
  -I, --snapshot-interval     dump快照間隔時(shí)間,默認(rèn)60s,需要在daemon模式下
  -L, --logfile               使用日志文件,默認(rèn)標(biāo)準(zhǔn)輸出到終端
  --tz-utc                    備份的時(shí)候允許備份Timestamp,這樣會導(dǎo)致不同時(shí)區(qū)的備份還原會出問題,默認(rèn)關(guān)閉,參數(shù):--skip-tz-utc to disable.
  --skip-tz-utc               
  --use-savepoints            使用savepoints來減少采集metadata所造成的鎖時(shí)間,需要SUPER權(quán)限
  --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               備份執(zhí)行的線程數(shù),默認(rèn)4個(gè)線程
  -C, --compress-protocol     在mysql連接上使用壓縮協(xié)議
  -V, --version               Show the program version and exit
  -v, --verbose               更多輸出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2
  
myloader
Usage:
  myloader [OPTION...] multi-threaded MySQL loader
 
 
Help Options:
  -?, --help                        Show help options
 
 
Application Options:
  -d, --directory                   備份文件所在的目錄
  -q, --queries-per-transaction     每個(gè)事務(wù)的query數(shù)量, 默認(rèn)1000
  -o, --overwrite-tables            如果表存在則先刪除,使用該參數(shù),需要備份時(shí)候要備份表結(jié)構(gòu),不然還原會找不到表
  -B, --database                    指定需要還原的數(shù)據(jù)庫
  -s, --source-db                   還原的數(shù)據(jù)庫
  -e, --enable-binlog               啟用二進(jìn)制日志恢復(fù)數(shù)據(jù)
  -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                     使用的線程數(shù)量,默認(rèn)4
  -C, --compress-protocol           連接上使用壓縮協(xié)議
  -V, --version                     Show the program version and exit
  -v, --verbose                     更多輸出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2

(編輯:武林網(wǎng))

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 榕江县| 鲜城| 汽车| 安徽省| 咸阳市| 桂阳县| 招远市| 沁水县| 北安市| 贵州省| 涟源市| 菏泽市| 阿巴嘎旗| 景谷| 五峰| 怀来县| 防城港市| 安平县| 祁连县| 鹤峰县| 茶陵县| 三明市| 恭城| 阜康市| 五家渠市| 淮滨县| 桂东县| 中西区| 浦北县| 沧源| 昔阳县| 沙雅县| 西林县| 璧山县| 翼城县| 黔东| 松溪县| 兴仁县| 孝义市| 佛山市| 黔南|