Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change storage engine of database in phpmyadmin? [duplicate]

I have a MySQL database. The default storage engine is MyISAM.

I want to change it to InnoDB.

I can change it table by table , but i want to change it one time that affect all the tables .

How can I change the database storage engine? I tried it but seems there is no option in phpmyadmin.

like image 667
Kanishka Panamaldeniya Avatar asked Aug 03 '11 04:08

Kanishka Panamaldeniya


2 Answers

The easiest way to change the default engine is to log on phpMyAdmin and then go to Variables >> storage engine

click edit and type InnoDB.

the default storage engine is now InnoDB

http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_storage_engine

like image 187
Gurey Avatar answered Oct 27 '22 23:10

Gurey


When logged in go to the table you want to change then click the operations tab. From there you can change the storage type, as well as a few other options

Online Doc

like image 28
nidhin Avatar answered Oct 27 '22 22:10

nidhin