Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.