Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2009, 09:17 AM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default Bot SQL Backup Script Issue

The backup script that comes with the PEQ SVN seems to be not working properly. I reciently did a backup of my bots to update my db. The backup worked fine but when I reload the file back into the updated peq ver 590 db I get the following error:

Code:
ERROR 1136 (21S01) at line 25: Column count doesn't match value count at row 1
I have never had a problem with this script up until now.

How can I fix it so I can restore my bots back into the database?
Reply With Quote
  #2  
Old 05-29-2009, 11:03 AM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

When I had this problem, I had to roll back to an older DB to import the bots. I then modified the bot backup script to include --complete-insert as an option to mysqldump. This causes the dump to include the column names so you can restore it later even if columns are added. I created a new backup of the bots, changed to the new DB (again) and then was able to import the bots.
Reply With Quote
  #3  
Old 05-29-2009, 11:40 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

You can also hand jam it. I've pulled a line in the npc_types file and a line out of the bot backup sql file and compared them field by field in xcel, found the offending field and added a default value. That has worked for me as well.
Reply With Quote
  #4  
Old 05-29-2009, 02:12 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

Quote:
Originally Posted by gaeorn View Post
When I had this problem, I had to roll back to an older DB to import the bots. I then modified the bot backup script to include --complete-insert as an option to mysqldump. This causes the dump to include the column names so you can restore it later even if columns are added. I created a new backup of the bots, changed to the new DB (again) and then was able to import the bots.

This worked perfectly thanks!
Reply With Quote
  #5  
Old 05-29-2009, 03:15 PM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

Any time
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:22 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3