Mind you, this is another "all of a sudden"... only started happening to me recently.
Tonight, while using Threaded Loading, my world "all of a sudden" seems to fail on these 3 queries until I disable threaded loading rule:
23:49:57 D Pet : -Loading Pet data...
23:49:57 E Database : Error 2013 running MySQL query: Lost connection to MySQL server during query
SELECT pet_name FROM spawn_pet_names
23:49:57 D Pet : -Load Pet data complete!
This was the first query to new DatabaseNew!23:49:58 I Chat : Loading channels...
23:49:58 E Database : Error 2006 running MySQL query: MySQL server has gone away
SELECT `name`,`password`,`level_restriction`,`classes`,`races` FROM `channels`
23:50:28 D Login : Looking for Login Zone Updates...
23:50:28 D Login : Looking for Login Appearance Updates...
23:50:28 E Database : Error 2006 running MySQL query: MySQL server has gone away
SELECT ci.id, ci.char_id, ia.equip_type, ia.red, green, ia.blue, ia.highlight_red, ia.highlight_green, ia.highlight_blue
, ci.slot FROM characters c JOIN character_items ci ON c.id = ci.char_id JOIN item_appearances ia ON ci.item_id = ia.ite
m_id WHERE c.deleted = 0 AND ci.type = 'EQUIPPED' AND ( ci.slot <= 8 OR ci.slot = 19 ) AND ci.login_checksum <> CRC32(CR
C32(`ci`.`type`) + CRC32(ci.slot) + CRC32(ci.item_id)) ORDER BY ci.char_id, ci.slot
What I have done --
- Disabled my Windows firewall
Tried 3 other MySQL servers in my farm
I have moved the local MySQL to an SSD drive (so I am going to say it's code, and not system performance)
Increased MySQL memory usage and buffers to the best of my ability
My thought is, the more functions I refactor to use DatabaseNew, *something* is stampeding over my MySQL connection (the queries using database_new.Select or database_new.Query). No idea what, though I guess I could turn on Query logging in the Database logger. If it weren't 12:15am... maybe I'll do that tomorrow, if you're interested.