内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

sync_binlog

5.6默認(rèn)值0,到了5.7默認(rèn)是1

sync_binlog

成都創(chuàng)新互聯(lián)不只是一家網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司;我們對(duì)營(yíng)銷、技術(shù)、服務(wù)都有自己獨(dú)特見解,公司采取“創(chuàng)意+綜合+營(yíng)銷”一體化的方式為您提供更專業(yè)的服務(wù)!我們經(jīng)歷的每一步也許不一定是最完美的,但每一步都有值得深思的意義。我們珍視每一份信任,關(guān)注我們的網(wǎng)站設(shè)計(jì)、網(wǎng)站制作質(zhì)量和服務(wù)品質(zhì),在得到用戶滿意的同時(shí),也能得到同行業(yè)的專業(yè)認(rèn)可,能夠?yàn)樾袠I(yè)創(chuàng)新發(fā)展助力。未來(lái)將繼續(xù)專注于技術(shù)創(chuàng)新,服務(wù)升級(jí),滿足企業(yè)一站式成都全網(wǎng)營(yíng)銷推廣需求,讓再小的品牌網(wǎng)站設(shè)計(jì)也能產(chǎn)生價(jià)值!

Command-Line Format --sync-binlog=#
System Variable Name sync_binlog
Variable Scope Global
Dynamic Variable Yes
Permitted Values (32-bit platforms) Type integer
Default 0
Min Value 0
Max Value 4294967295
Permitted Values (64-bit platforms) Type integer
Default 0
Min Value 0
Max Value 4294967295

If the value of this variable is greater than 0, the MySQL server synchronizes its binary log to disk (using fdatasync()) after sync_binlog commit groups are written to the binary log. The default value of sync_binlog is 0, which does no synchronizing to disk—in this case, the server relies on the operating system to flush the binary log's contents from time to time as for any other file. A value of 1 is the safest choice because in the event of a crash you lose at most one commit group from the binary log. However, it is also the slowest choice (unless the disk has a battery-backed cache, which makes synchronization very fast).

百度翻譯:如果這個(gè)變量的值大于0,MySQL服務(wù)器同步二進(jìn)制日志到磁盤(使用fdatasync())后sync_binlog犯組寫入二進(jìn)制日志。sync_binlog的默認(rèn)值是0,并沒有同步在這種情況下,磁盤,服務(wù)器依賴于操作系統(tǒng)的二進(jìn)制日志的內(nèi)容刷新時(shí)間為任何其他文件。一個(gè)1的值是最安全的選擇,因?yàn)樵谝粋€(gè)崩潰的事件,你失去了最一個(gè)提交組從二進(jìn)制日志。然而,它也是最慢的選擇(除非磁盤具有電池備份的高速緩存,這使得同步非??欤?。



sync_binlog=1 or N
     This makes MySQL synchronize the binary log’s contents to disk each time it commits a transaction 
     默認(rèn)情況下,并不是每次寫入時(shí)都將binlog與硬盤同步。因此如果操作系統(tǒng)或機(jī)器(不僅僅是MySQL服務(wù)器)崩潰,有可能binlog中最后的語(yǔ)句丟 失了。要想防止這種情況,你可以使用sync_binlog全局變量(1是最安全的值,但也是最慢的),使binlog在每N次binlog寫入后與硬盤 同步。即使sync_binlog設(shè)置為1,出現(xiàn)崩潰時(shí),也有可能表內(nèi)容和binlog內(nèi)容之間存在不一致性。如果使用InnoDB表,MySQL服務(wù)器 處理COMMIT語(yǔ)句,它將整個(gè)事務(wù)寫入binlog并將事務(wù)提交到InnoDB中。如果在兩次操作之間出現(xiàn)崩潰,重啟時(shí),事務(wù)被InnoDB回滾,但仍 然存在binlog中??梢杂?-innodb-safe-binlog選項(xiàng)來(lái)增加InnoDB表內(nèi)容和binlog之間的一致性。(注釋:在MySQL 5.1中不需要--innodb-safe-binlog;由于引入了XA事務(wù)支持,該選項(xiàng)作廢了),該選項(xiàng)可以提供更大程度的安全,使每個(gè)事務(wù)的 binlog(sync_binlog =1)和(默認(rèn)情況為真)InnoDB日志與硬盤同步,該選項(xiàng)的效果是崩潰后重啟時(shí),在滾回事務(wù)后,MySQL服務(wù)器從binlog剪切回滾的 InnoDB事務(wù)。這樣可以確保binlog反饋InnoDB表的確切數(shù)據(jù)等,并使從服務(wù)器保持與主服務(wù)器保持同步(不接收 回滾的語(yǔ)句)。

網(wǎng)頁(yè)名稱:sync_binlog
網(wǎng)頁(yè)URL:http://www.rwnh.cn/article8/igepip.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供軟件開發(fā)、商城網(wǎng)站Google、網(wǎng)站建設(shè)品牌網(wǎng)站制作、響應(yīng)式網(wǎng)站

廣告

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

小程序開發(fā)
信宜市| 平顶山市| 开平市| 宁阳县| 麻江县| 鄢陵县| 增城市| 华坪县| 石楼县| 南城县| 松溪县| 九台市| 翁牛特旗| 义乌市| 丽江市| 凌海市| 溧阳市| 台东县| 泗阳县| 丹凤县| 静乐县| 惠州市| 无锡市| 柯坪县| 城市| 越西县| 林周县| 昭平县| 杨浦区| 留坝县| 平昌县| 恩施市| 花莲市| 繁昌县| 治县。| 阜南县| 古田县| 闽清县| 渝北区| 嘉祥县| 三江|