Register for your free account! | Forgot your password?

You last visited: Today at 22:37

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

Advertisement



MySQL error

Discussion on MySQL error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
MySQL error

Okay not sure if it's something to do with the source or the database but the error I get is

Code:
[10:13:19] MySql.Data.MySqlClient.MySqlException (0x80004005): Field 'NextSteedColor' doesn't have a default value
   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)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Desco_Pj.Database.MySqlCommand.Execute(MySqlConnection conn) in C:\Users\alank\Downloads\SourceV1[conquer]\SourceV1\SourceV1\Database\MySql\MySqlCommand.cs:line 349
   at Desco_Pj.Database.MySqlCommand.Execute() in C:\Users\alank\Downloads\SourceV1[conquer]\SourceV1\SourceV1\Database\MySql\MySqlCommand.cs:line 318
   at Desco_Pj.Database.ConquerItemTable.AddItem(ConquerItem& Item, GameState client) in C:\Users\alank\Downloads\SourceNightMareV1[conquer]\SourceV1\SourceV1\Database\ConquerItemTable.cs:line 381
denominator is offline  
Old 04/21/2020, 04:45   #2
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by denominator View Post
Okay not sure if it's something to do with the source or the database but the error I get is

Code:
[10:13:19] MySql.Data.MySqlClient.MySqlException (0x80004005): Field 'NextSteedColor' doesn't have a default value
   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)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Desco_Pj.Database.MySqlCommand.Execute(MySqlConnection conn) in C:\Users\alank\Downloads\SourceV1[conquer]\SourceV1\SourceV1\Database\MySql\MySqlCommand.cs:line 349
   at Desco_Pj.Database.MySqlCommand.Execute() in C:\Users\alank\Downloads\SourceV1[conquer]\SourceV1\SourceV1\Database\MySql\MySqlCommand.cs:line 318
   at Desco_Pj.Database.ConquerItemTable.AddItem(ConquerItem& Item, GameState client) in C:\Users\alank\Downloads\SourceNightMareV1[conquer]\SourceV1\SourceV1\Database\ConquerItemTable.cs:line 381
Field 'NextSteedColor' doesn't have a default value
pintinho12 is offline  
Thanks
1 User
Old 04/21/2020, 09:03   #3
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Desco_Pj.Database.ConquerItemTable.AddItem(Conquer Item& Item, GameState client) in C:\Users\alank\Downloads\SourceNightMareV1[conquer]\SourceV1\SourceV1\Database\ConquerItemTable.cs:li ne 381

Go there and give 'NextSteedColor' a value.
turk55 is offline  
Old 04/21/2020, 14:49   #4
 
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
Line 381 isn't NextSteedColor though it is

cmd.Insert("ID", Item.ID).Insert("UID", Item.UID)

Turns out it had nothing to do with the source at all and was due to the database with NextSteedColor not being set to null
denominator is offline  
Old 04/21/2020, 21:09   #5
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
The error told you that already.
Super Aids is offline  
Old 04/21/2020, 22:01   #6
 
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
I would agree but it never said anything about it needing to be null just that it was something to do with the database I just assumed that changing it to null might fix the problem which it did
denominator is offline  
Old 04/22/2020, 19:54   #7
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
It didn't need to be null, it just needed a default value. Null is a default value but it could be anything really.
Super Aids is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Mysql funktioniert nicht.. service mysql status mysql does not exist in /etc/rc.d
07/09/2015 - Metin2 Private Server - 8 Replies
Hey, mein Mysql Server funktíoniert von jetzt auf gleich nicht mehr.. Kam aus dem Freibad und alles war down.. Wenn ich den Mysql Server starten will sagt er mir: " service mysql status mysql does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d) " Und wenn ich meinen Metin Server starte "cant connect to 127.0.0.1" weil der Mysql Server down ist..
[ERROR] Mysql can't connect to local Mysql server through socket
10/08/2011 - Metin2 Private Server - 3 Replies
Hallo Liebe Com, Undzwar habe ich ein Problem mit Mysql. Als ich Mysql installiert habe konnte ich Problemlos drauf connecten,auch mit navicat.Aber als ich die Serverfiles (2011er) installiert habe und rebootet habe ging aufeinmal mysql nichtmehr.Wenn ich mysql -p eingebe steht dann da: Wenn ich den Startbefehl eingebe steht da: Was kann das sein? Und es passiert immer nur nach der Serverfiles installation. Ich habe den Server schon 3x resetten lassen und es passierte immer das...
[ERROR] Mysql can't connect to local Mysql server through socket
11/06/2010 - Metin2 Private Server - 5 Replies
I just recently tried to configure a DNS server for MT2.. It came up with this error ERROR: 2002 (HY000): Can't connect to local Mysql server through socket '/tmp/mysql.sock' (2) Do I need to do a fresh installation of FBSD? :S Thanks.
[Help] Wamp error or mysql error
09/27/2009 - EO PServer Hosting - 1 Replies
Notice: Undefined variable: myaccount in C:\wamp\www\pages\register.php on line 17 Warning: mysql_select_db() : Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.18-nt in C:\wamp\www\pages\register.php on line 17 Warning: mysql_select_db() : Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\wamp\www\pages\register.php on line 17 Warning: mysql_select_db() : A link to the server could not be established in C:\wamp\www\pages\register.php on line 17 Warning:...



All times are GMT +1. The time now is 22:38.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.