View Full Version : Mysql Error.
Colin-Roberts
17-10-2008, 07:59 PM
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.
--ss--
17-10-2008, 08:01 PM
Hmm i'm not too sure what's causing the error but you may want to remove the MD5 from your post lol.
Jackboy
17-10-2008, 08:04 PM
Whats key 2 ? :P
Colin-Roberts
17-10-2008, 08:22 PM
grr I need a mod to remove the md5.
DJ-Ains.T
17-10-2008, 08:24 PM
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..
Colin-Roberts
17-10-2008, 08:26 PM
it's just moving a usertable from a usersystem into the phpbb usertable.
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.
Colin-Roberts
17-10-2008, 08:59 PM
what row already exists?
The only row's i can think of need to exists to be able to insert.
iUnknown
17-10-2008, 09:02 PM
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*' );
Colin-Roberts
17-10-2008, 09:29 PM
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
Trigs
18-10-2008, 12:01 AM
what are the names of all your table rows?
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.