Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to change the database engine of a MySQL database table?  (Read 2614 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
How to change the database engine of a MySQL database table?
« on: December 15, 2013, 07:01:17 pm »


In this article we will show you how to change the database engine of a MySQL table.

Let’s assume that you have a database table called my_table using MyISAM engine and you wish to change the engine from MyISAM to InnoDB.

The MySQL query that should be used is:

ALTER TABLE my_table ENGINE = InnoDB;

The easiest way to make this change is through phpMyAdmin:

Open your phpMyAdmin tool and select the database which contains my_table. Then click the SQL tab, paste the above query there and click the Go button.

If the query is executed properly, the database engine of the table will be changed to InnoDB.