» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2007, 02:39 AM
shaife shaife is offline
Junior Member
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shaife is on a distinguished road
Default need your help guys!

Hi all of you,
I have created a database, all tables engine=innodb
Show tables:

table1
table2
table3
table4

sql orders my tables from a - z
In table 2 is my primary key, its 1:n and all other tables only have foreign keys. On dumping, table1 is on the top => one of the foreign key tables table2, the prime key table, is 2nd.

On restoring the backup on my server, he can't create table1 may be because there is no primary key table. So i have to copy paste my backup.sql, change table 2 to the top and all is working fine. Inserting table1 manually, tried to insert table 2 after table1.
Means the only way to restore my backup is to change my backup.sql?
Can some one here solve my problem?
Thank you. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 05-12-2007, 07:40 AM
domin domin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 167
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 17
domin is on a distinguished road
Default Re: need your help guys!

Try disabling the foreign key checks: set foreign_key_check=0 or something like that. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How fat is your cheque this month? khasmoth AdSense 39 09-03-2008 03:56 AM
Any suggestions, guys? EDenio Web Hosting Industry 1 03-29-2007 09:46 AM
i need some help, guys! groven MySQL Forums 0 01-13-2007 03:55 AM
i need some help guys! durban MySQL Forums 1 01-01-2007 07:16 AM
need some help, guys! Krishin Web Hosting Industry 1 12-28-2006 05:34 AM


All times are GMT. The time now is 11:44 AM.