原创 MVCC講解

MVCC的實現,是通過保存數據在某個時間點的快照來實現的,也就是說,不管需要執行多長時間,每個事務看到的數據是一致的,根據事務開始的時間不同,每個事務對同一張表,同一時刻看到的數據可能是不一樣的。 innodb在基於鎖的併發控制技術上,實

原创 2:基於二進制日誌文件位置的複製

服務器 192.168.1.2 (master) ,服務器 192.168.1.3 (slave) 要將master配置爲使用基於二進制日誌文件位置的複製,必須啓用二進制日誌記錄並建立唯一的server-id。要配置二進制日誌和serve

原创 事務ID分配時間

我們一般會用start transaction或begin開始一個事務,自然而言的我們認爲在這個時候就已經分配了一個事務ID,其實並不是這樣,我們下面來看一個案例 首先我們添加測試數據 我們開啓兩個客戶端,分別爲session1和s

原创 14.7.5 Creating File-Per-Table Tablespaces Outside

To create a file-per-table tablespace in a location outside the MySQL data directory, use the DATA DIRECTORY =absolute_p

原创 14.7.6 Copying File-Per-Table Tablespaces to Anoth

14.7.6.1 Transportable Tablespace Examples14.7.6.2 Transportable Tablespace InternalsThis section describes how to copy

原创 14.7.4.1 Enabling and Disabling File-Per-Table Tab

The innodb_file_per_table option is enabled by default.innodb_file_per_table 選項默認是開啓的To set the innodb_file_per_table op

原创 分區講解1

SQL標準對於數據存儲的物理方面沒有提供太多的指導。SQL語言本身旨在獨立於其工作的模式,表,行或列的任何數據結構或媒體。儘管如此,大多數先進的數據庫管理系統已經開發了一些方法來確定用於存儲特定數據塊的物理位置,比如文件系統、硬件,甚至兩

原创 14.6.12.3 Estimating ANALYZE TABLE Complexity for

ANALYZE TABLE complexity for InnoDB tables is dependent on:InnoDB表的ANALYZE TABLE複雜度取決於: The number of pages sampled, as

原创 14.7.3UsingRawDiskPartitionsForTheSystemTablespace

You can use raw disk partitions as data files in the InnoDB system tablespace. This technique enables nonbuffered I/O on

原创 14.6.12.2 Configuring Non-Persistent Optimizer Sta

This section describes how to configure non-persistent optimizer statistics. Optimizer statistics are not persisted to d

原创 14.7.2 Changing the Number or Size of InnoDB Redo

To change the number or the size of your InnoDB redo log files, perform the following steps:要更改InnoDB重做日誌文件的數量或大小,請執行以下步

原创 14.7.4 InnoDB File-Per-Table Tablespaces InnoDB

14.7.4.1 Enabling and Disabling File-Per-Table TablespacesHistorically, all InnoDB tables and indexes were stored in the

原创 14.6.13 Configuring the Merge Threshold for Index

You can configure the MERGE_THRESHOLD value for index pages. If the “page-full” percentage for an index page falls below

原创 14.7 InnoDB Tablespaces

14.7.1 Resizing the InnoDB System Tablespace14.7.2 Changing the Number or Size of InnoDB Redo Log Files14.7.3 Using Raw

原创 14.7.1 Resizing the InnoDB System Tablespace

This section describes how to increase or decrease the size of the InnoDB system tablespace.本節描述如何增加或減少InnoDB系統表空間的大小。 I