If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Foreign key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-05, 06:56
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
Foreign key

I have mysgl 3.23.47 max-debug and i can't create foreign keys, i use InnoDb, what is going wrong?
Thank you
Dimis
Reply With Quote
  #2 (permalink)  
Old 02-01-05, 07:52
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Do you have any error Message ?
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 02-01-05, 08:05
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
errono 150

In mysql, dos the error code is 150, i read that maybe the syntax of sql is faulty but even if i make the syntax of www.mysql.com the error exist, also i tried with toad and sqlyog whith no success!
dimis
Reply With Quote
  #4 (permalink)  
Old 02-01-05, 08:25
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
The problem is that you do you have a problem with your index
Both key and foreign key must be indexed.
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On