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 Bugs Database Bugs
  • Search

Problems creating world database (rev 709)

Bugs related to deploying or updating our database(s).

Moderators: Community Managers, Developers

Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
shargash
Team Member
Team Member
Posts: 338
Joined: Tue Apr 15, 2014 10:16 pm
Problems creating world database (rev 709)
  • Quote

Post by shargash » Tue Oct 14, 2014 9:07 pm

When I try to run the script vgo_world.sql (rev 709), I get errors trying to insert data into two tables, on the INSERT INTO `spawn_location_name` and INSERT INTO `spawn_location_placements` statements. The error I get is:

Preparing...
Importing vgo_world.sql...
Finished executing script
ERROR 2013 (HY000) at line 636: Lost connection to MySQL server during query
Operation failed with exitcode 1

I get the same error whether I try to Run SQL Script... or Open SQL Script... and execute.

The two inserts that fail are huge. If I break them up manually into 4 insert statements each, they complete OK. I figure I'm having a memory issue, except that I have 16gb RAM and a 32GB paging file, which I would think would be enough. I'm running MySql Community Server v5.6. Is there something else I should be running?

Thanks
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: Problems creating world database (rev 709)
  • Quote

Post by Lokked » Tue Oct 14, 2014 9:15 pm

The reason for this is that MySQL default install only allows a certain size of query to be run against it.

I thought I posted about this, but I can't find it.

Check this SO post out:
http://stackoverflow.com/questions/8062 ... acket-size

Your error is different than the OP, but this is the issue. Here is more information:
http://dev.mysql.com/doc/refman/5.0/en/ ... ction.html
Top

User avatar
Blackstorm
Retired
Posts: 354
Joined: Thu Sep 04, 2014 11:11 am
Location: Paris, FRANCE
Contact:
Contact Blackstorm
Website
Re: Problems creating world database (rev 709)
  • Quote

Post by Blackstorm » Wed Oct 15, 2014 2:45 am

Hi,

I always import through phpmyadmin with a POST var size at 25MB (the currently script size is aprox. 17MB) and have no error.
Maybe you need to increase the post var size too, or optimize your mysql settings to accept more requests size...
Top

shargash
Team Member
Team Member
Posts: 338
Joined: Tue Apr 15, 2014 10:16 pm
Re: Problems creating world database (rev 709)
  • Quote

Post by shargash » Wed Oct 15, 2014 12:44 pm

Thanks, guys. I'm pretty much a novice at db stuff, and I've never used MySql before. I did check the online help, but couldn't find anything that looked relevant.
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: Problems creating world database (rev 709)
  • Quote

Post by Lokked » Wed Oct 15, 2014 1:05 pm

Find you my.ini file. There is also some command prompt line you can run to increase this limit, but I think it is just for that session (it will reset to default when next you run the MySQL process).
Top

shargash
Team Member
Team Member
Posts: 338
Joined: Tue Apr 15, 2014 10:16 pm
Re: Problems creating world database (rev 709)
  • Quote

Post by shargash » Wed Oct 15, 2014 1:26 pm

I changed max_allowed_packet=4M in the %programdata% version of my.ini to max_allowed_packet=32M, and the inserts executed fine. Thanks again!
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Database Bugs”

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