A Conversation for The H2G2 Programmers' Corner

MySQL database

Post 1

Terran

Hi everyone, I've got a problem when creating database tables in MySQL. I'm using version 3.23.49, and am trying to create tables with TYPE=INNODB (because I want to use foreign keys), but when I check the table I find out that it has reset to TYPE=MYISAM. Any ideas, because I'm stumped.

Thanks,
Verc smiley - fullmoon


MySQL database

Post 2

MaW

I wasn't aware that MySQL could handle foreign keys at all before version 4.0, no matter what table type you were using...


MySQL database

Post 3

Terran

According to my sources, you can if you do the foreign keys as references, and set the TYPE to InnoDB. Which is what I've been trying to do, but for some reason, as I said, when I look at the table again MySQL had set it back to MyISAM. Apparently your supposed to be able to do this (according to <./>www.mysql.com</.&gtsmiley - winkeye with any version after 3.23.3# something (I can't remember the version number exactly, but I know I'm supposed to be able to do it).


MySQL database

Post 4

MaW

Hmm. Odd.


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more