This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: HeidiSQL error  (Read 2524 times)

darkleen

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 12
    • View Profile
HeidiSQL error
« on: December 04, 2011, 04:04:34 am »
i was trying to make a item import to HeidiSQL but it give this error SQL Error (1054): unknown column ,name2, in fleld list, can any help me out here plz
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: HeidiSQL error
« Reply #1 on: December 04, 2011, 11:56:51 am »
well, there is no column named "name2" then.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Solarion

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
Re: HeidiSQL error
« Reply #2 on: December 04, 2011, 03:00:27 pm »
Lemme guess. You used wow-v and either your core is not supported by it  or your server is on Cataclysm, am I correct?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

darkleen

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 12
    • View Profile
Re: HeidiSQL error
« Reply #3 on: December 05, 2011, 12:03:37 am »
no my server is a worth 3,5.5a
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Morfium

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 96
    • View Profile
Re: HeidiSQL error
« Reply #4 on: December 08, 2011, 11:37:05 pm »
Usually your statement is something like:

INSERT INTO tablename (column1,column2) VALUES(value1,value2);

It seems the column name2 which is in your insert statement tries to add a column name2 which is not present in your db.
You could try to delete the column and corresponding value from your insert statement.

If it's like:
INSERT INTO items (name, name2, guid,...) VALUES ('Uber Staff', 'Ubersuperroxx0rstaff',334,...)

you might want to try it by removing name2 and 'Ubersuperroxx0rstaff'.
But tbh. If your insert statement has such differences compared to your database you might have gotten it for the wrong database structure or version.
E.g. if you have a trinity core a mangos db item might have a similar structure but if they differ you'd have to manually change each insert statement, which could, depending on your item count, get rather annoying.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: HeidiSQL error
« Reply #5 on: December 10, 2011, 12:38:55 am »
Or just get data that fits to your table structure :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Felix11

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 3
    • View Profile
Re: HeidiSQL error
« Reply #6 on: December 13, 2011, 11:36:59 am »
The SQL dump you are importing has "43534" as some number in in a column which has a primary or unique key. That's why you get "Duplicate entry".

You need to edit your SQL dump, change this "43534" to some other number. Unfortunately this can create inconsistencies in your database if other tables are referring to this particular id, so my proposal is only the last solution. It would be better if you get a nicer SQL dump.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »