[Trinity] SQL Error Help... menu

User Tag List

Results 1 to 15 of 15
  1. #1
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Trinity] SQL Error Help...

    abdullah

    Delete
    Last edited by Hyldran0; 11-25-2011 at 01:05 PM.
    Shit's Gone Real

    [Trinity] SQL Error Help...
  2. #2
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really? No one ?
    Shit's Gone Real

  3. #3
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Duplicate entry = something with that primary key already exists.

    If you really want to force that data in, change the insert statement to a replace statement.

  4. #4
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Duplicate entry = something with that primary key already exists.

    If you really want to force that data in, change the insert statement to a replace statement.
    How to do that ?
    Shit's Gone Real

  5. #5
    shumi's Avatar Member
    Reputation
    11
    Join Date
    Dec 2007
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can do that with the update sql statement.
    But as the error suggests, that spell allready exists on that target.

  6. #6
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well it isen't that spell is Bear Form, and i cannot learn it from that Druid trainer i want the spell ti get into..
    Shit's Gone Real

  7. #7
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Learn how databases and MySQL works, then you will understand the answers given here.

  8. #8
    shumi's Avatar Member
    Reputation
    11
    Join Date
    Dec 2007
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can delete that spell with

    DELETE FROM npc_trainer WHERE enrty=12042 AND spell=5487

    and after that just put the insert sql.
    And like stoneharry said. Learn it and you will understand.

    Have a good day.

  9. #9
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was suspected a better answer but okey..
    I'll add them manually instead. thanks for non help.

    I was asking for a fix not an more advanced way.
    Shit's Gone Real

  10. #10
    Serpious's Avatar Contributor CoreCoins Purchaser
    Reputation
    134
    Join Date
    Jul 2011
    Posts
    364
    Thanks G/R
    0/1
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dude, wtf? All the answers here are good enough for a person with even really basic SQL knowledge to understand.

  11. #11
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'r picture says everything about you

    Well i was looking for a fast fix.
    Seems like this forum is dying.

    Was better 1-2 years ago.
    People where nicer

    back to Topic. I fixed it my self now, thanks for no help.
    Shit's Gone Real

  12. #12
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change INSERT to REPLACE, worked for me when I just tested it :P
    If you need me you have my skype, if you don't have my skype then you don't need me.

  13. #13
    Hyldran0's Avatar Contributor
    Reputation
    118
    Join Date
    Nov 2008
    Posts
    374
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2dgreengiant View Post
    Change INSERT to REPLACE, worked for me when I just tested it :P
    See this guy ? He pwns !!!
    Thanks alot, But still i fixed it my self!

    +rep
    Shit's Gone Real

  14. #14
    Serpious's Avatar Contributor CoreCoins Purchaser
    Reputation
    134
    Join Date
    Jul 2011
    Posts
    364
    Thanks G/R
    0/1
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Hyldran0 View Post
    Originally Posted by 2dgreengiant View Post
    Change INSERT to REPLACE, worked for me when I just tested it :P
    See this guy ? He pwns !!!
    Thanks alot, But still i fixed it my self!

    +rep
    Originally Posted by stoneharry View Post
    change the insert statement to a replace statement.
    2d wrote the same thing stoneharry did.

  15. #15
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 0x0 View Post
    2d wrote the same thing stoneharry did.
    This .

Similar Threads

  1. [Help!] SQL Error in all items from WoW Vendetta
    By webm0nst3r in forum World of Warcraft General
    Replies: 6
    Last Post: 01-03-2009, 07:35 PM
  2. Frustraiting sql error on installtion, please help!
    By stoneharry in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-07-2008, 12:32 AM
  3. [help] SQL error
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-09-2008, 07:39 PM
  4. *HELP* Sql Error +rep
    By thegame240 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-07-2008, 03:39 PM
All times are GMT -5. The time now is 09:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search