MySQL storage engine MyISAM and InnoDB

Source: Internet
Author: User
Tags install perl

Storage Engine Introduction
    • MySQL Storage engine

MyISAM read and write faster, does not support things where the MyISAM storage engine is a piece of MySQL data before the system. Default storage engine prior to version 5.5

1)不支持事物2)表级锁定形式,数据在更新时锁定整个表。3)数据库读写过程中相互阻塞。4)可以通过key_buffer_size来设置缓存索引5)数据单独写入或读取 速度快占用资源少。6)不支持外键约束,只支持全文索引。

2) InnoDB storage engine (mysql5.5 and later version default storage engine):

1)支持事务,支持四个事务隔离级别。2)行级锁定,但是全表扫描仍然会是表级锁定。3)读写阻塞与事务隔离级别相关。4)具有非常高效的缓存特性,能缓存索引,也能缓存数据。5)表与主键以簇的方式存储。6)支持分区、表空间,类似Oracle数据库。7)支持外键约束。8)适合对硬件资源要求比较高的场合。
    • The difference between MyISAM and InnoDB
      因为MyISAM相对简单所以在效率上要优于InnoDB.如果系统读多,写少。对原子性要求低。那么MyISAM最好的选择。且MyISAM恢复速度快。可直接用备份覆盖恢复。如果系统读少,写多的时候,尤其是并发写入高的时候。InnoDB就是首选了。两种类型都有自己优缺点,选择那个完全要看自己的实际类弄。





About bulk operations support for MySQL5.5 version operations

mysqladmin -u root password abc123 //mysql 5.5 设置root密码mysql -u root -p //输入密码进入mysqluse school; //进入school库create table bank; //创建bank表create table banks; //创建banks表yum install perl-DBI -y //安装perl-DBI包yum install perl-DBD-MySQL -y //安装perl-DBD-MySQL包mysql_convert_table_format --host=localhost --user=root --password=abc123 --socket=/tmp/mysql.sock --engine=MyISAM school bank banks //用mysql_convert_table_format命令,指定mysql服务器,指定用户,输入密码,指定socket文件,指定存储引擎,后面跟数据库名,需要修改存储引擎的数据表名

MySQL storage engine MyISAM and InnoDB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.