SQL Error (2006): MySQL server has gone away. Anyone that can help? menu

User Tag List

Results 1 to 10 of 10
  1. #1
    Tommyruin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SQL Error (2006): MySQL server has gone away. Anyone that can help?

    SQL Error (2006): MySQL server has gone away. Anyone that can help?-error-jpgGet this error when loading files greater than 4MB? Also get error SQL Error (2006): MySQL server has gone away. Anyone that can help?-error1-jpg For example loading 'Gameobject_spawns', I get this list of errors
    HTML Code:
    /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;/* SQL Error (1231): Variable 'time_zone' can't be set to the value of 'NULL' *//*!40101 SET SQL_MODE=@OLD_SQL_MODE */;/* SQL Error (1231): Variable 'sql_mode' can't be set to the value of 'NULL' *//*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;/* SQL Error (1231): Variable 'foreign_key_checks' can't be set to the value of 'NULL' *//*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;/* SQL Error (1231): Variable 'unique_checks' can't be set to the value of 'NULL' *//*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;/* SQL Error (1231): Variable 'character_set_client' can't be set to the value of 'NULL' *//*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;/* SQL Error (1231): Variable 'collation_connection' can't be set to the value of 'NULL' *//* 8,411 rows affected, 0 rows found. Duration for 27 of 29 queries: 0.312 sec. */
    and the second image, anyone got any tips? Working on an ArcEmu core Thanks

    SQL Error (2006): MySQL server has gone away. Anyone that can help?
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    A bad database dump is causing the errors.

    As for the error, basically your SQL file is executing stupidly big queries (INSERT INTO x VALUES (...)(...)(...)...repeat 50000x...(...)).

    The server gets part way into the query then decides it's too big, taking too much resources, and stops it. This is why you get the error "mysql server has gone away". It stopped the query.

    To allow your query through you need to edit your MySQL server's settings to support a larger max_server_query value (if that is the correct option from memory). 512M is big enough.

    I always dump my databases as single line queries - takes up more memory and takes longer to execute, but prevents errors like this.

  3. #3
    Tommyruin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have been able to do it before with no errors though? But thanks, will try it now

  4. #4
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tommyruin View Post
    I have been able to do it before with no errors though? But thanks, will try it now
    Larger tables? Different server? Different database backup options? Any of these (and more) could cause the error to be triggered.

  5. #5
    Tommyruin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't know you could change any of that, but I could have set it up differently I suppose

  6. #6
    Tommyruin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick question, how do I edit my SQL server setting?:3 I always screw up when it comes to SQL :L

  7. #7
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tommyruin View Post
    Quick question, how do I edit my SQL server setting?:3 I always screw up when it comes to SQL :L
    What MySQL server are you using?

    The default binary, you go to:

    \MySQL\MySQL Server 5.5\my.ini

    add the line:

    [mysqld]

    If it doesn't already exist, then add the line underneath:

    max_allowed_packet=500M

    So it should look like:

    [mysqld]
    max_allowed_packet=500M

    Then restart your MySQL server (or computer) for the changes to take effect.

    Alternatively, you could try executing this query:

    SET GLOBAL max_allowed_packet=1073741824;

    Before you try to execute whatever else.

    Source: mysql - How to change max_allowed_packet size - Stack Overflow

  8. #8
    Tommyruin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now i'm getting a different error, error 2013 and i'm still having error 2006SQL Error (2006): MySQL server has gone away. Anyone that can help?-error3-jpg Why does this all happen to meeeee :<

  9. #9
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Can't really read it, screenshot is too small.

    Try google'ing - include the error code in your search.

  10. #10
    Tommyruin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its ok, I managed to sort it out by installing and reinstalling different versions of MYSQL until one worked :L the latest version did it for me thanks though! (would +rep but ive already repped you too much apparently :3 )

Similar Threads

  1. [Trading] Feenix private server wow tobias really? ANYONE THAT I SCAMMED PLEASE COME FORWARD
    By poley07 in forum World of Warcraft Buy Sell Trade
    Replies: 3
    Last Post: 04-22-2013, 03:52 PM
  2. Anyone That Can Setup A Vanilla WoW Server?
    By pjamesmg in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 12-20-2011, 09:37 PM
  3. Replies: 2
    Last Post: 04-25-2008, 07:10 AM
  4. Error 2003: Cannot connect to the MySQL server on 'localhost' (10061)
    By Gorge in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 10-31-2007, 09:50 AM
  5. MySQL Server Configuration Error
    By Blueeyedtimothy in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 08-31-2007, 04:25 PM
All times are GMT -5. The time now is 07:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search