Jump to content

Can't Alter Table To Engine=Innodb...strange Problems


nodirtyrockstar

Recommended Posts

MYSQL version --> 5.0.91

 

ALTER TABLE products ENGINE=INNODB;

 

The error is that it responds that it changed the engine type, but when I view the database in mysqladmin, the tables are still MYISAM.

 

I really wish I saved the CREATE TABLE commands. Basically, there are three tables. The variable types are VARCHAR, INT, TINYINT, DECIMAL, DATETIME, and YEAR. There are no null fields. One of the tables is a JOIN table, and all three of them possess foreign keys.

 

Please let me know if I left out anything, and thank you in advance for your consideration.

 

I threw together a couple of screen shots. Above the red line shows my command and the response showing that I successfully changed the sessions table. Below the red line shows what I see when I view the database in mysqladmin; the sessions table still has a MYISAM engine type.post-132473-0-59497400-1349225818_thumb.gif

CREATE TABLE `sessions` (

`id` varchar(255) NOT NULL,

`created` datetime NOT NULL,

`expired` datetime NOT NULL,

`completed` tinyint(1) NOT NULL,

`price` decimal(6,2) NOT NULL,

PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1

 

CREATE TABLE `products` (

`id` varchar(20) NOT NULL,

`artist` varchar(30) NOT NULL,

`title` varchar(30) NOT NULL,

`artwork` varchar(255) NOT NULL,

`label` varchar(30) NOT NULL,

`year` year(4) NOT NULL,

`price` decimal(6,2) NOT NULL,

`qty` int(11) NOT NULL,

`cartLnk` varchar(255) NOT NULL,

`agedOff` tinyint(1) NOT NULL,

PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1

 

CREATE TABLE `sessProdLnk` (

`products_id` varchar(20) NOT NULL,

`sessions_id` varchar(255) NOT NULL,

`qty` int(6) NOT NULL,

KEY `products_id` (`products_id`),

KEY `sessions_id` (`sessions_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.