Jump to content
TrinityCore

[SOLVED][INVALID]SQL Error (1264): Out of range value for column


Kr4ll
 Share

Recommended Posts

Hey, first of all, sorry if this is the wrong place for my question, i didn't know where should i try to get help..

I've made a new NPC on my server (I'm using Jeutie's Repack), i've made a new equipment in creature_equip_template, and when i'm trying to write my equipment id under the column "equipment_id" it always says:

SQL Error (1264): Out of range value for column 'equipment_id' at row 1

I tried to figure out what's the max range value, and it looks like it's 127. If i write 128  or more the error appears.

Any idea how can i fix it, or how can i change the max value?

I had already used Jeutie's Repack - Trinitycore before a few years ago, and as I remember there was no problem like this at all..

error.png

Link to comment
Share on other sites

--- Canned message start --- Trinity does not support repacks. Please learn to compile and configure the source yourself, you will learn more and may even find that the error doesnt exist in vanilla TC. Please refer to the author of the repack for your questions if you continue to use said repack. --- Canned message end ---

Link to comment
Share on other sites

  • 4 months later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By mrendoftheline
      Hi all,
      Sorry ahead of time if this is a noob-ish question as I'm fairly new to dealing with SQL. I've exported all the data from my Windows SQL server that functions normally and attempted to import to ubuntu after all previous setup. I've ensure I'm operating off the 5.7 revision of MySQL already just to make sure.
      When I try to kick up the Auth server I'm getting a few errors with the database and I've referred to the old sql database to ensure they match 1 for 1 with the Windows version so I can confirm that the import was at the very least successful in gather all the needed data. This is what I'm currently seeing upon attempting to launch the Auth server and was hoping to get some assistance with this. I can tell it's not liking perhaps some of the format that the db is in or something of that sort but any guidance is helpful. Thank you ahead of time.
      ---
      Using configuration file /home/trinitycore/server/etc/authserver.conf. Using SSL version: OpenSSL 1.1.1f 31 Mar 2020 (library: OpenSSL 1.1.1f 31 Mar 2020) Using Boost version: 1.71.0 Automatic database updates are disabled for all databases! Opening DatabasePool 'auth'. Asynchronous connections: 1, synchronous connections: 1. MySQL client library: 10.3.25 MySQL server ver: 5.7.34 Connected to MySQL database at 127.0.0.1 MySQL client library: 10.3.25 MySQL server ver: 5.7.34 Connected to MySQL database at 127.0.0.1 DatabasePool 'auth' opened successfully. 2 total connections running. In mysql_stmt_prepare() id: 10, sql: "UPDATE account SET salt = ?, verifier = ? WHERE id = ?" Unknown column 'salt' in 'field list' In mysql_stmt_prepare() id: 12, sql: "SELECT a.id, a.username, a.locked, a.lock_country, a.last_ip, a.failed_logins, ab.unbandate > UNIX_TIMESTAMP() OR ab.unbandate = ab.bandate, ab.unbandate = ab.bandate, aa.SecurityLevel, a.totp_secret, a.salt, a.verifier FROM account a LEFT JOIN account_access aa ON a.id = aa.AccountID LEFT JOIN account_banned ab ON ab.id = a.id AND ab.active = 1 WHERE a.username = ?" Unknown column 'aa.SecurityLevel' in 'field list' In mysql_stmt_prepare() id: 13, sql: "SELECT a.id, UPPER(a.username), a.locked, a.lock_country, a.last_ip, a.failed_logins, ab.unbandate > UNIX_TIMESTAMP() OR ab.unbandate = ab.bandate, ab.unbandate = ab.bandate, aa.SecurityLevel, a.session_key_auth FROM account a LEFT JOIN account_access aa ON a.id = aa.AccountID LEFT JOIN account_banned ab ON ab.id = a.id AND ab.active = 1 WHERE a.username = ? AND a.session_key_auth IS NOT NULL" Unknown column 'aa.SecurityLevel' in 'field list' In mysql_stmt_prepare() id: 17, sql: "SELECT a.id, a.session_key_auth, a.last_ip, a.locked, a.lock_country, a.expansion, a.mutetime, a.locale, a.recruiter, a.os, aa.SecurityLevel, ab.unbandate > UNIX_TIMESTAMP() OR ab.unbandate = ab.bandate, r.id FROM account a LEFT JOIN account_access aa ON a.id = aa.AccountID AND aa.RealmID IN (-1, ?) LEFT JOIN account_banned ab ON a.id = ab.id AND ab.active = 1 LEFT JOIN account r ON a.id = r.recruiter WHERE a.username = ? AND a.session_key_auth IS NOT NULL ORDER BY aa.RealmID DESC LIMIT 1" Unknown column 'a.session_key_auth' in 'field list' In mysql_stmt_prepare() id: 47, sql: "DELETE FROM account_access WHERE AccountID = ?" Unknown column 'AccountID' in 'where clause' In mysql_stmt_prepare() id: 48, sql: "DELETE FROM account_access WHERE AccountID = ? AND (RealmID = ? OR RealmID = -1)" Unknown column 'AccountID' in 'where clause' In mysql_stmt_prepare() id: 49, sql: "INSERT INTO account_access (AccountID, SecurityLevel, RealmID) VALUES (?, ?, ?)" Unknown column 'AccountID' in 'field list' In mysql_stmt_prepare() id: 51, sql: "SELECT SecurityLevel FROM account_access WHERE AccountID = ? AND (RealmID = ? OR RealmID = -1) ORDER BY RealmID DESC" Unknown column 'SecurityLevel' in 'field list' In mysql_stmt_prepare() id: 68, sql: "INSERT INTO logs_ip_actions (account_id, character_guid, realm_id, type, ip, systemnote, unixtime, time) VALUES (?, ?, ?, ?, (SELECT last_ip FROM account WHERE id = ?), ?, unix_timestamp(NOW()), NOW())" Unknown column 'realm_id' in 'field list' In mysql_stmt_prepare() id: 69, sql: "INSERT INTO logs_ip_actions (account_id, character_guid, realm_id, type, ip, systemnote, unixtime, time) VALUES (?, ?, ?, ?, (SELECT last_attempt_ip FROM account WHERE id = ?), ?, unix_timestamp(NOW()), NOW())" Unknown column 'realm_id' in 'field list' In mysql_stmt_prepare() id: 70, sql: "INSERT INTO logs_ip_actions (account_id, character_guid, realm_id, type, ip, systemnote, unixtime, time) VALUES (?, ?, ?, ?, ?, ?, unix_timestamp(NOW()), NOW())" Unknown column 'realm_id' in 'field list' In mysql_stmt_prepare() id: 71, sql: "INSERT INTO logs_ip_actions (account_id, character_guid, realm_id, type, ip, systemnote, unixtime, time) VALUES (?, 0, 0, 1, ?, ?, unix_timestamp(NOW()), NOW())" Unknown column 'realm_id' in 'field list' In mysql_stmt_prepare() id: 80, sql: "INSERT INTO secret_digest (id, digest) VALUES (?,?)" Table 'auth.secret_digest' doesn't exist In mysql_stmt_prepare() id: 81, sql: "DELETE FROM secret_digest WHERE id = ?" Table 'auth.secret_digest' doesn't exist In mysql_stmt_prepare() id: 83, sql: "UPDATE account SET totp_secret = ? WHERE id = ?" Unknown column 'totp_secret' in 'field list' Closing down DatabasePool 'auth'. Asynchronous connections on DatabasePool 'auth' terminated. Proceeding with synchronous connections. All connections on DatabasePool 'auth' closed. Could not prepare statements of the Login database, see log for details. Closing down DatabasePool 'auth'. Asynchronous connections on DatabasePool 'auth' terminated. Proceeding with synchronous connections. All connections on DatabasePool 'auth' closed. ---  
    • By DagothHertil
      Hello everyone. I have a small question about how can I access the spell ID`s used by creatures? In world database in creature_template table there is spell1, spell2, ... spell8 values wich correspond to spells wich I will be able to use when this creature is under Mind Control (as stated in wiki), but these values are set for creatuers up to level ~60 and for creatures from 70-80 none creatures have their spell1 .. spell8 set to any value. So my question is essentialy is where can I obtain the spell ID`s used by cretures? Obviously the creatures in 70-80 range have spell and they use them, but I dont see any values in world database and may be these spell lists come from dbc or something? I would realy appreciate any help 
×
×
  • Create New...