Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Mysql Error.

  1. #1
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default Mysql Error.

    I'm trying to move my user table into phpbb.
    INSERT INTO `phpbb_users` ( user_email, username, user_password )
    VALUES ( '[email protected]', 'minifly3', '*Removed*'
    )


    error:


    #1062 - Duplicate entry '' for key 2

    Edited by Johno! (Forum Moderator): Content removed for user's safety.
    Last edited by Johno; 17-10-2008 at 08:55 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Hmm i'm not too sure what's causing the error but you may want to remove the MD5 from your post lol.

  3. #3
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Whats key 2 ?

  4. #4
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    grr I need a mod to remove the md5.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  5. #5
    Join Date
    Apr 2008
    Location
    North West, UK.
    Posts
    1,007
    Tokens
    529

    Latest Awards:

    Default

    I don't know the error tbh, and I know that someone will have the md5 if you're not fast getting rid of it. Also, what is it you're making? Like the full thing..

  6. #6
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    it's just moving a usertable from a usersystem into the phpbb usertable.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  7. #7
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    That's because that row already in the table and it's throwing a wobbly because you can't have two of the same I would assume.


  8. #8
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    what row already exists?
    The only row's i can think of need to exists to be able to insert.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  9. #9
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Sounds like it's just that there are two rows with that email or username or any auto-increment that might of stuffed up.

    If you dont think it's that, try:

    INSERT INTO `phpbb_users` ( 'user_email', 'username', 'user_password' ) VALUES ( '[email protected]', 'minifly3', '*Removed*' );
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  10. #10
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    i made sure that the user id, user email or username didn't exist twice. wasn't the problem.

    your code gives: #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 ''user_email', 'username', 'user_password' ) VALUES ( '[email protected]'' at line 1

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •