![]() |
MySQL db problems
I'm trying to create two foreign keys so that when I delete Gallery_ID 23 in the 'Galleries' table, it automatically deletes it in the 'Clicks' table but it isn't working.
Code:
CREATE TABLE `Galleries` ( |
If your default table type isn't innodb, then add engine=innodb to the create statements.
|
Quote:
Server version is: MySQL 3.23.58 Is it enabled by default in that version? Any command to check? |
http://dev.mysql.com/doc/mysql/en/innodb-overview.html
You probably need to enable it. Have a read. If you can, move to 4.1.x, much nicer. |
Thanks I'll get my host to upgrade my server :winkwink:
|
Make sure you dump your tables out before the upgrade, or some other kind of backup. Good luck.
|
bump for posterity's sake
WOOOOOOOOOOOO WHOOOOOOOOOOOOOOOOOO!!!!!!!!! |
| All times are GMT -7. The time now is 09:19 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123