15

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.

Boaz
  • 19,892
  • 8
  • 62
  • 70
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193

6 Answers6

32

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

Gurey
  • 432
  • 5
  • 12
20

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

nidhin
  • 6,661
  • 6
  • 32
  • 50
8

Steps:

  1. Click on the table for which you have to change the storage engine.
  2. Click on operations.
  3. Option to change the storage engine is inside the field set
Hugo Dozois
  • 8,147
  • 12
  • 54
  • 58
Nil Patil
  • 81
  • 1
  • 3
2

the best answer i got was

The easiest way is just to go to the mysql config file (my.ini in windows, my.cnf in Linux) and just add this: [mysqld] default-storage-engine=InnoDB .

i think that will do the trick easily .

thanks for the help........... :D

Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
0

Click on the table name, then click on operations, there you can change the server engine one table at a time.

A+ Computer Solutions- Belize

0

There is no option in phpMyAdmin to change the storage type at a time. You have to change each table in operations tab.

James
  • 19
  • 1
  • 4