
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can I change the storage engine of a MySQL table?
MySQL ALTER TABLE statement can change the storage engine of a table as follows −
mysql> ALTER TABLE Student ENGINE = 'InnoDB'; Query OK, 0 rows affected (0.90 sec) Records: 0 Duplicates: 0 Warnings: 0
Now with the help of the following statement, we can check that the storage engine has been changed
mysql> SELECT ENGINE FROM information_schema.TABLES -> WHERE TABLE_SCHEMA = 'tutorial' -> AND TABLE_NAME = 'Student'; +--------+ | ENGINE | +--------+ | InnoDB | +--------+ 1 row in set (0.01 sec)
- Related Articles
- While creating a MySQL table, how can I specify the storage engine of my choice rather than using the default storage engine InnoDB?
- How to update MySQL table storage engine
- How can we find out the storage engine used for a particular table in MySQL?
- How to change Table Engine in MySQL?
- How can I change the name of an existing column from a MySQL table?
- How to display the Engine of a MySQL table?
- How can I change the value of an instance of a row in MySQL table?
- How can we change the name of a MySQL table?
- How to display all the tables in MySQL with a storage engine?
- How to alter the database engine of a MySQL database table?
- How to convert MyISAM to InnoDB storage engine in MySQL?
- How to create a MySQL table with InnoDB engine table?
- How to create a MySQL table with MyISAM engine table?
- How to display the storage engine while implementing JDBC - MySQL CONNECTION query?
- How do I know if a MySQL table is using myISAM or InnoDB Engine?

Advertisements