Register for your free account! | Forgot your password?

You last visited: Today at 13:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Mysql.Data

Discussion on Mysql.Data within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
bryce16's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 47
Received Thanks: 3
Question Mysql.Data

Iv'e been studying a pretty decent source bit by bit and got some understanding of it so far however I saw this error(rarely happens) when creating a new character and attempting to login.
What EXACTLY is the Mysql.Data telling me?
Code:
MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '' for key 'PRIMARY'
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
If further explanation is needed please ask.
bryce16 is offline  
Old 03/05/2012, 19:49   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
idk much bout mysql but it says
Quote:
Duplicate entry '' for key 'PRIMARY'
look at your error im assuming your accounts database or characters database. (wherever "primary" is) and make sure there isn't two sections named Primary
corbit15 is offline  
Reply


Similar Threads Similar Threads
[help] mysql data loop betwean differend tables
01/29/2012 - EO PServer Hosting - 2 Replies
hi all i was wondering if some1 know why this is refusing to work $charshout = mysql_query("SELECT * FROM cq_user WHERE (`account_id` LIKE '".$_SESSION."' )"); while ($user = mysql_fetch_assoc($charshout)) { $i = $i+1; $shoutpersonal = mysql_query("SELECT * FROM cq_ad_log WHERE (`user_name` LIKE '".$user."') ORDER BY publish_time ASC LIMIT 5"); }
MYsql Data Exception.
08/30/2011 - CO2 Private Server - 7 Replies
Hello, i got little bug in my server that do that and We can't log in, Major lag in game :S http://s3.noelshack.com/uploads/images/1006543257 6078_screen2.jpg http://s3.noelshack.com/uploads/images/2020682921 499_screen_1.jpg I pray my screen will help to understand.
Could not locate the assembally "MySql.Data"
07/29/2009 - CO2 Private Server - 2 Replies
I have this error in Visual C#... I've tried overwriting the MySql.Data.dll with the defualt one several times. I havnt edited the file either but suddenly it wont work and its telling me MySqlCommand, MySqlDataAdapter & MySqlConnection are all failing :l. Help... Please?
My Cq Data at zfserver\MYSQL\data
01/14/2009 - CO2 Private Server - 3 Replies
sorry



All times are GMT +2. The time now is 13:21.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.