Innodb Read Only Mode
Innodb has come up (in mysql-5.6.7 release candidates onwards) with changes for running server instance in read only mode. It makes entire server instance as read only. You cannot selectively make certain table as read only (Not at table level). Feature is introduced by considering
(1) Innodb can be run from read only media like DVD/CD etc
(2) User can explicitly set instance in read only mode though its on read-write media
Start server in Read Only Mode:"--innodb-read-only" boolean configuration parameter is introduced for starting server in read only mode. Server will not start in read only mode if it was not shutdown cleanly/safely earlier.
User must pass/set parameter which try to create file/log on read/write media. Else server will not start. Like , user will need to pass "--pid-file=
--read-only
1) When datadir is RW and server started with --read-only : root/super user have permission for operations. Other users will not have permission to change.
2) When datadir is on read only media and server started with --read-only : all operations blocked for users (including root).
--innodb-read-only
1) When datadir is RW and server started with --innodb-read-only :
a) No user will be able to modify. DCL(like create user/grant/revoke etc) commands will work for root user. (It's non innodb issue)
b) When both --read-only and --innodb-read-only are given, then --innodb-read-only takes effect.(As I checked that root user can not do DML/DDL but can perform DCL )
2) When datadir is on read only media and server started with --read-only : all operations blocked for users (including root).
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26812308/viewspace-1295097/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 事務的read only mode
- 3.2.3 Opening a Database in Read-Only ModeDatabase
- Open a Database in Read-Only Mode (301)Database
- Seed Database (pdb$seed) - Read Write OR Read Only Mode in Oracle Database 12cDatabaseOracle
- mysql [ERROR] InnoDB: ./ibdata1 can't be opened in read-write modeMySqlError
- oracle 表空間和表 read only遷移後不再read onlyOracle
- read only tablespace backup restoreREST
- innodb_autoinc_lock_mode
- 關於tablespace在read only狀態下的DML ,DDL操作--Read-Only Tablespaces
- mysql sql_mode ONLY_FULL_GROUP_BYMySql
- CSS :read-only 選擇器CSS
- 當從READ ONLY到READ WRITE都做什麼了
- DG -- READ ONLY模式開啟物理Standby模式
- Oracle Isolation Levels : Read-only (317)Oracle
- MySQL sql_mode=only_full_group_by 錯誤MySql
- PostgreSQL原始碼定製:線上global read onlySQL原始碼
- mysql 5.7sql_mode=only_full_group_by問題MySql
- MySQL 報錯'Variable 'XXX' is a read only variable'MySql
- RMAN結合Read Only、Exclude的備份策略
- 作業系統報:read-only file system作業系統
- mysql 禁用 ONLY_FULL_GROUP_BY,暫時解決錯誤(sql_mode=only_full_group_by)MySql
- Why NHibernate updates DB on commit of read-only transactionMIT
- Read-Only Tables in Oracle Database 11g Release 1OracleDatabase
- 啟動dataguard備庫到read-only狀態
- oracle實驗記錄 (恢復read only tablespace(1))Oracle
- oracle實驗記錄 (恢復read only tablespace(2))Oracle
- MySQL:Innodb Handler_read_*引數解釋MySql
- InnoDBd的auto_increment以及innodb_autoinc_lock_modeREM
- master bug InnoDB Error unlock row could not find a 4 mode lockASTError
- Oracle 11g 新特性:只讀表(Read-only)Oracle
- remount of /system failed: Read-only file system原因及解決REMAI
- idea怎麼修改檔案的file is read-onlyIdea
- 重建控制檔案與 datafile offline,tablespace read only
- 005-blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]BloCORBIndexdeleteAPI
- linux下操作檔案出現 Read-only file systemLinux
- Linux-x86_64 Error: 30: Read-only file systemLinuxError
- When you issue "ALTER TABLESPACE xxx READ ONLY",what will oracle do?Oracle
- MySQL this is incompatible with sql_mode=only_full_group_by-錯誤解決MySql