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

$ mydumper  --help
Usage:
  mydumper [OPTION...] multi-threaded MySQL dumping
 
Help Options:
  -?, --help                  Show help options
 
Application Options:
  -B, --database              #需要備份的數(shù)據(jù)庫(kù),一個(gè)數(shù)據(jù)庫(kù)一條命令備份,要不就是備份所有數(shù)據(jù)庫(kù),包括mysql.
  -T, --tables-list           #需要備份的表,用逗號(hào)分隔.
  -o, --outputdir             #備份文件目錄.
  -s, --statement-size        #生成插入語(yǔ)句的字節(jié)數(shù),默認(rèn)1000000,這個(gè)參數(shù)不能太小,不然會(huì)報(bào)Row bigger than statement_size for tools.t_serverinfo.
  -r, --rows                  #試圖用行塊來(lái)分割表,該參數(shù)關(guān)閉--chunk-filesize.
  -F, --chunk-filesize        #行塊分割表的文件大小,單位是MB.
  -c, --compress              #壓縮輸出文件.
  -e, --build-empty-files     #即使表沒(méi)有數(shù)據(jù),也產(chǎn)生一個(gè)空文件.
  -x, --regex                 #正則表達(dá)式匹配,如'db.table'.
  -i, --ignore-engines        #忽略的存儲(chǔ)引擎,用逗號(hào)分隔.
  -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)出存儲(chǔ)過(guò)程.
  -k, --no-locks              #不執(zhí)行共享讀鎖,警告:這將導(dǎo)致不一致的備份.
  --less-locking              #減到最小的鎖在innodb表上.
  -l, --long-query-guard      #設(shè)置長(zhǎng)查詢(xún)時(shí)間,默認(rèn)60秒,超過(guò)該時(shí)間則會(huì)報(bào)錯(cuò):There are queries in PROCESSLIST running longer than 60s, aborting dump.
  -K, --kill-long-queries     #kill掉長(zhǎng)時(shí)間執(zhí)行的查詢(xún),備份報(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,這樣會(huì)導(dǎo)致不同時(shí)區(qū)的備份還原會(huì)出問(wèn)題,默認(rèn)關(guān)閉,參數(shù):--skip-tz-utc to disable.
  --skip-tz-utc               
  --use-savepoints            #使用保存點(diǎn)記錄元數(shù)據(jù)的鎖信息,需要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í)行的線(xiàn)程數(shù),默認(rèn)4個(gè)線(xiàn)程.
  -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 --help
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),不然還原會(huì)找不到表.
  -B, --database                    #指定需要還原的數(shù)據(jù)庫(kù).
  -s, --source-db                   #還原的數(shù)據(jù)庫(kù).
  -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                     #使用的線(xiàn)程數(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)頁(yè)名稱(chēng):mydumper和myloader使用參數(shù)解釋
本文路徑:http://www.muchs.cn/article28/ijchcp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁(yè)設(shè)計(jì)公司、動(dòng)態(tài)網(wǎng)站、品牌網(wǎng)站建設(shè)品牌網(wǎng)站制作、App開(kāi)發(fā)ChatGPT

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)