I have a myism table \'test\' which holds some out-dated data, now I want to recreate the table, all columns the same except that I changed the storage from myism to innodb.
CREATE TABLE IF NOT EXISTS banners (
id int(255) NOT NULL AUTO_INCREMENT,
user int(255) NOT NULL DEFAULT '0',
KEY type (type)
)
engine=myisam DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
this code change to
CREATE TABLE IF NOT EXISTS banners (
id int(255) NOT NULL AUTO_INCREMENT,
user int(255) NOT NULL DEFAULT '0',
KEY type (type)
)
engine=INNODB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;