Item Datenbank lässt sich nicht einfügen

Die deutsche Ecke der Dawn of Light Foren.

Moderators: Support Team, Other Language Team

Item Datenbank lässt sich nicht einfügen

Postby Nils » Mon Oct 08, 2007 2:53 pm

Eins vornweg:
Ich hab schon im Forum gesucht und nix gefunden was mich weiterbringt ...
Ich weiß, dass es durchaus Fehlerhafte Datenbanken gibt die sich nicht einfügen lassen.

Nun zu meinem Problem:
Ich möchte eine aktuelle Itemtemplate DB einfügen...
Ich hab ehrlich gesagt keine wirklich gute gefunden... ausser eine... aber als ich die einfügen wollte kam dieser Aufruf:
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Condition, MaxCondition, Quality, DPS_AF, SPD_ABS, Hand, Type_Damage, Object_Typ' at line 2
[Err] INSERT INTO itemtemplate
(ItemTemplate_ID, Id_nb, Name, Level, Durability, MaxDurability, Condition, MaxCondition, Quality, DPS_AF, SPD_ABS, Hand, Type_Damage, Object_Type, Item_Type, Color, Emblem, Effect, Weight, Model, Extension, Bonus, Bonus1, Bonus2, Bonus3, Bonus4, Bonus5, ExtraBonus, Bonus1Type, Bonus2Type, Bonus3Type, Bonus4Type, Bonus5Type, ExtraBonusType, IsPickable, IsDropable, Gold, Silver, Copper, MaxCount, PackSize, Charges, MaxCharges, SpellID, ProcSpellID, Realm, IsTradable, Bonus6, Bonus7, Bonus8, Bonus9, Bonus10, Bonus6Type, Bonus7Type, Bonus8Type, Bonus9Type, Bonus10Type, Charges1, MaxCharges1, SpellID1, ProcSpellID1, PoisonSpellID, PoisonMaxCharges, PoisonCharges, Platinum, CanDropAsLoot, AllowedClasses)
VALUES
("0_Demon_Bound_Bracelet", "0_Demon_Bound_Bracelet", "Demon-Bound Bracelet", 40, 50000, 50000, 50000, 50000, 100, 0, 0, 0, 0, 41, 33, 0, 0, 0, 10, 598, 0, 30, 22, 4, 4, 3, 0, 0, 3, 16, 14, 19, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 10, 55443, 0, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, "NULL");
[Msg] Finished - Unsuccessfully
--------------------------------------------------
Vermutlich ist das darauf zurückzuführen, dass der Syntax der Einträge wohl nicht stimmt. Kann man das evtl umgehen?
Wenn nicht... gibt es evtl eine Datenbank die aktuell ist und die auch von Navicat8 akzeptiert wird? (wenn ja bitte mit Link, sofern möglich)
Nils
DOL Guest
 
Posts: 3
Joined: Sun Oct 07, 2007 1:09 pm

Postby Deniska » Mon Oct 08, 2007 3:27 pm

This question is already answered in other topics (:
Just replace all
Code: Select all
Condition
with
Code: Select all
`Condition`
In MySQL 5+ "Condition" - is a reserved keyword. That's why you must use "`" symbol (above "TAB" button) in table name in SQL request.

EDIT: Sorry for english in german-language forum. Hope this help.
Sorry for my english ]:
Deniska
DOL Acolyte
 
Posts: 109
Joined: Tue Oct 31, 2006 4:32 pm
Location: Russia, Tomsk

Postby Nils » Mon Oct 08, 2007 3:43 pm

Ja ähm ok, das stimmt :)
Gibt es denn evtl irgendwo gute .xml Datenbanken mit einer Großzahl der Items?
Nils
DOL Guest
 
Posts: 3
Joined: Sun Oct 07, 2007 1:09 pm

Postby Deniska » Mon Oct 08, 2007 4:05 pm

I've never use XML databases /:. Official databases are distributed only in SQL format.
From DOL Files section
Database Formats Supported: XML (for testing only), MySQL 4.1, MySQL 5.0
IMO, SQL is faster and easy to use and modify then XML.

EDIT: Just check this topic. Also, you can ask any questions on "Support" forum, just read "Solved Support Threads" before (:. Maybe your problem is already answered.
Sorry for my english ]:
Deniska
DOL Acolyte
 
Posts: 109
Joined: Tue Oct 31, 2006 4:32 pm
Location: Russia, Tomsk

Postby korbenh1 » Mon Oct 08, 2007 5:47 pm

Wie Deniska schon richtig erwähnt hat, mußt du einfach Condition mit `Condition` ersetzen.

Einfach die Datei ItemTemplate mit dem Editor öffnen, auf Bearbeiten dann Ersetzen...

Suchen nach:
ty, Condition

Ersetzen mit:
ty, `Condition`

Alle ersetzen und fertig ist der ganze Spuk, dann solltest du die Datei in die Datenbank einfügen können.


ty, Condition aus dem Grund mit ty, `Condition` ersetzen, sonst wird auch Condition bei MaxCondition ersetzt und schon erhälst du die nächste Fehlermeldung.
korbenh1
DOL Guest
 
Posts: 1
Joined: Tue Sep 18, 2007 6:02 pm

Postby Deniska » Mon Oct 08, 2007 7:02 pm

Oops. korbenh1 absolutely right ):. I forgot about this field. I'm sorry.
Sorry for my english ]:
Deniska
DOL Acolyte
 
Posts: 109
Joined: Tue Oct 31, 2006 4:32 pm
Location: Russia, Tomsk

Postby Nils » Tue Oct 09, 2007 10:07 am

Ah, ja das funktioniert ... hab fälschlicherweise immer die ' mit den ´ verwecheslt, was natürlich zur Folge hatte, dass es nicht ging :)

Vielen Dank.

Aber immo sind nur Items aus Classic und SI (soweit ich das in der Table sehen konnte) ... ToA/DR/Cata Items sind aber noch nicht drin in der Datenbank hier oder?
Nils
DOL Guest
 
Posts: 3
Joined: Sun Oct 07, 2007 1:09 pm


Return to “%s” Deutsch

Who is online

Users browsing this forum: No registered users and 1 guest