Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

need help implementing InnoDB storage engine to existing database

I am trying to add primary keys to my tables, via Sequel Pro and it said "This table currently does not support relations. Only tables that use the InnoDB storage engine support them."

I went into phpMyAdmin and looked at the storage engines and saw InnoDB listed, highlighted in blue, then I selected it and it displayed this info: http://cl.ly/68Ph

enter image description here

It is enabled, but I am unsure how to implement it to my existing database, any help is appreciated.

like image 403
Brad Avatar asked Jan 31 '26 02:01

Brad


1 Answers

You should tell your tables to use InnoDB:

ALTER TABLE mytable ENGINE=InnoDB

for existing tables,

CREATE TABLE mytable (…) ENGINE=InnoDB

for the new ones.

Note that InnoDB supports neither SPATIAL nor FULLTEXT indexes so don't use it if your application relies on them.

like image 87
Quassnoi Avatar answered Feb 02 '26 15:02

Quassnoi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!