VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Support Windows
  • Search

The "MySQL has gone away" mystery

Help with the Windows x86/x64 versions of the VGOEmulator Server.

Moderator: Community Managers

Post Reply
  • Print view
Advanced search
11 posts
  • Previous
  • 1
  • 2
John Adams
Retired
Posts: 4577
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Re: The "MySQL has gone away" mystery
  • Quote

Post by John Adams » Fri Oct 02, 2015 1:43 pm

Alrighty, I think I finally figured this out - while it is not the root cause, it is a good recovery option for our world and login servers. According to this article:

https://dev.mysql.com/doc/refman/5.0/en ... nnect.html
[quote]In MySQL 5.0, auto-reconnect was enabled by default until MySQL 5.0.3, and disabled by default thereafter. The MYSQL_OPT_RECONNECT option is available as of MySQL 5.0.13.[/quote]
Seems regardless what the "variables" values are in MySQL, the C++ code was not auto-reconnecting. I added this to the constructor, right under mysql_init(),

Code: Select all

	my_bool reconnect = 1;
	mysql_options(&mysql, MYSQL_OPT_RECONNECT, &reconnect);
and had Xinux log into the world. I then disabled the NIC on the MySQL box and started seeing errors. With this code in place, the SQL connection woke back up and continued to save the player data without issue.

So until I solve the network issue at least, this will keep the world from dying. Players still might need to re-log in, as Xinux reported losing chat channels and whatnot, but at least your data is safe.
Top


Post Reply
  • Print view

11 posts
  • Previous
  • 1
  • 2

Return to “Windows”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron