DB Patcher error

Old bugs stored here for reference.
Locked
User avatar
alfa
Team Member
Posts: 550
Joined: Fri Jul 27, 2007 6:24 pm
Location: France
Contact:

DB Patcher error

Post by alfa » Fri Oct 19, 2012 3:27 pm

An error with DB Update

Code: Select all

ALTER TABLE instance_spawns_removed ADD CONSTRAINT `FK_instance_spawns` FOREIGN KEY (`spawn_id`) REFERENCES `spawn_location_entry` (`spawn_location_id`) ON UPDATE CASCADE;
1005 - Can't create table 'eq2world.#sql-1314_a' (errno: 121) 
Fight with me... Or die, like the rest.
J.A. say: "I think Xinux tried to tell me this, but I ignore most things he suggests."

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: DB Patcher error

Post by John Adams » Fri Oct 19, 2012 3:29 pm

Try it now.

User avatar
alfa
Team Member
Posts: 550
Joined: Fri Jul 27, 2007 6:24 pm
Location: France
Contact:

Re: DB Patcher error

Post by alfa » Fri Oct 19, 2012 3:41 pm

I have try to wipe all DB, sorry :p it's still update not, all data to get :p
Fight with me... Or die, like the rest.
J.A. say: "I think Xinux tried to tell me this, but I ignore most things he suggests."

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: DB Patcher error

Post by John Adams » Fri Oct 19, 2012 5:57 pm

On a brand new DB, I am getting full tables and data as expected.

Also, updating EQ2TC server after I fixed the Add Constraint, now works for upgrading existing worlds.
17:56:39 I Patcher: Connecting to update server...
17:56:39 I Patcher: Checking for updates.
17:56:39 I Patcher: Found Table Updates.
17:56:40 I Patcher: Update Table: 'instance_spawns_removed' = SUCCESS!
17:56:40 I Patcher: Server is already up-to-date.
If this still isn't working (which a NEW database should), you can always run

Code: Select all

delete from `table_versions` where `name` = '{name of table}';
and it will pull down a new copy of whatever table you removed from `table_versions`. This will re-fetch any table and it's data [but always remember, foreign-key constraints means all similar tables should be replaced, not just 1]

User avatar
alfa
Team Member
Posts: 550
Joined: Fri Jul 27, 2007 6:24 pm
Location: France
Contact:

Re: DB Patcher error

Post by alfa » Fri Oct 19, 2012 6:59 pm

It works, thanks
Fight with me... Or die, like the rest.
J.A. say: "I think Xinux tried to tell me this, but I ignore most things he suggests."

Locked

Who is online

Users browsing this forum: No registered users and 0 guests