Author Topic: Modular Gaming - Free PHP Game Framework  (Read 2360 times)

Offline Ongor the Republican

  • Level 3
  • *
  • Posts: 8
  • Reputation: +0/-0
    • View Profile
Re: Modular Gaming - Free PHP Game Framework
« Reply #25 on: November 06, 2010, 06:16:46 PM »
I'm getting the following error when attempting to import the mg.sql file into a database:

#1452 - Cannot add or update a child row: a foreign key constraint fails (`mg`.<result 2 when explaining filename '#sql-d94_4a'>, CONSTRAINT `roles_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE)

Any help?

Offline codestryke

  • Administrator
  • Level 33
  • *****
  • Posts: 589
  • Reputation: +22/-0
    • View Profile
    • eXtremeCast Games
Re: Modular Gaming - Free PHP Game Framework
« Reply #26 on: November 07, 2010, 07:10:43 PM »
It's trying to enforce a relationship that hasn't been fully restored yet. There is a switch to tell mySQL to ignore relationship constraints during an import.

Creating online addictions, one game at a time:

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal