The storage engine used by MYSQL to view and modify tables

Source: Internet
Author: User


The correct method for MYSQL to view and modify the storage engine used by the table is: show table status from db_name where name = 'table _ name '; + ------ + -------- + --------- + ------------ + ------ + ---------------- + ------------- + signature + | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | + --------- + ------------ + ---------------- + ------------- + ----------------- + ------------ + | t | InnoDB | 10 | Compact | 3 | 5461 | 16384 | 0 | + ------ + -------- + --------- + ------------ + ------ + ---------------- + ------------- + ----------------- + www.2cto.com incorrect method: show create table table_name; + ------- + tables + | Table | Create Table | + ------- + tables + | t | create table 'T '( 'Vc 'varchar (1) default null, 'C' char (1) default null, KEY 'C' ('C ')) ENGINE = InnoDB default charset = utf8 | + ------- + engines + If mysqld does not start the corresponding ENGINE, such as InnoDB, the default myisam engine is used, so it is inaccurate. Modify: www.2cto.com alter table table_name engine = innodb; alter table table_name engine = myisam;

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.