An Entrepreneur, Coach, IT Consultant, Strategic Adviser, and a Traveler craving to explore and contribute to forming a better society.

Monday, February 23, 2009

Maria - MySQL Storage Engine

No comments :
Keywords: Maria Storage Engine, Maria, Storage Engine, MySQL Storage Engine, MyISAM Replacement Engine, MyISAM, Auto Recovery type Maria

In nutshell, Maria Storage Engine is a crash safe version of MyISAM.

Maria Engine is an extended version of the MyISAM Engine, which is crash safe and provides more concurrency. The Maria storage engine supports all of the main functionality of the MyISAM engine, but includes recovery support (in the event of a system crash), full logging (including CREATE, DROP, RENAME and TRUNCATE operations), all MyISAM row formats and a new Maria specific row format.

It aims to be fully transactional (ACID) soon.

Maria will be a replacement mysql storage engine for the existing MyISAM Engine.

A Maria type table shall be created as like other type of tables using ENGINE option in the "create table" statement.

MySQL> create table tablename (fieldname fieldtype) engine=maria;

Alternatively an existing table shall be converted into maria type table as specified in the following statement:

MySQL> alter table tablename engine=maria;


Maria type table will create three files like myisam with different extensions as following:

  1. tablename.frm
  2. tablename.mad
  3. tablename.mai

Maria File Types & Explanation

  • *.frm - table definition and structure
  • *.mad - data file of the maria type table
  • *.mai - index file of the maria type table

Maria Storage Engine Features

  • Maria supports auto-recovery in the event of a crash
  • Maria supports a single writer and multiple readers
  • Maria provides a new row format, PAGE
  • Maria supports crash-safe operations over many statements by enclosing statements within LOCK TABLES and UNLOCK TABLES statements

Keywords: Maria Storage Engine, Maria, Storage Engine, MySQL Storage Engine, MyISAM Replacement Engine, MyISAM, Auto Recovery type Maria

Featured Blog Topics:


No comments :