Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-2006, 08:49 PM
ryanmhuc@yahoo.com
 
Posts: n/a
Default Sql Import with Foreign Keys

I just imported an sql backup. I had to SET FOREIGN_KEY_CHECKS=0
otherwise I would get an error 150 when it tried to create a table that
had a foreign key (because of course the table it was referencing did
not exist yet).

But now the database has no foreign keys in it. How do I import the sql
file and have the keys be created as well?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 03:22 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.