简体   繁体   中英

Changing the engine to InnoDB from MyISAM is not working

I am trying to change the table engine from MyISAM to INNODB. I am using the

alter table tablename ENGINE=INNODB

command. I am not getting any errors or warnings on the mysql side. I also commented the

skip-innodb

line in my.cnf file. So when I do a

show variables like 'have-innodb%'

it gives me a "YES". Also just to be on the safe side, I also deleted my ib_logfile0 and ib_logfile1 and restarted my mysql server.

But it still does not change the engine. I also did a show engines, and it shows innodb as one of the available engines.

Also these tables are full of data and have around 5000 rows, so is changing the engine type when a table has data, would that be the problem??

What could the missing link be??

Are you able to restart the server? If so, the error log will tell you if it had problems initialising the InnoDB engine.
Is this the first InnoDB table in your db? If so, you may have forgotten to create your ibdata files.
Does the table use fulltext indexing or other InnoDB-incompatible features?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM