Problem sourcing bots using setup guide on wiki
I'm having trouble sourcing "load_bots.sql" with peqdb_rev1180a-Bots. Sourcing "peqdb_rev1052.sql" and "load_player.sql" completed successfully. With "load_bots.sql" I get the following errors:
ERROR 1146 <42S02>: Table 'peq.bots' doesn't exist Query OK, 0 rows affected, 1 warning <0.00 sec> ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NO T EXISTS `vwGuildMembers` AS select 'C' as mobtype, cm.char_id, cm.guild_' at line 1 Query OK, 0 rows affected, 1 warning (0.00 sec) ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NO T EXISTS `vwBotCharacterMobs` AS select 'C' as mobtype, c.id, c.name, c.c' at line 1 mysql> I am using MySQL version 5.1. I would appreciate any help. |
Check load_bots.sql and make sure the first line is
Code:
source player_tables/bots.sql |
Thanks! That got rid of the first error, but I still have these:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NO T EXISTS `vwGuildMembers` AS select 'C' as mobtype, cm.char_id, cm.guild_' at line 1 Query OK, 0 rows affected, 1 warning (0.00 sec) ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NO T EXISTS `vwBotCharacterMobs` AS select 'C' as mobtype, c.id, c.name, c.c' at line 1 I'm scanning the manual right now, but I honestly have no idea what I'm looking for. |
Edit your bots.sql and wherever you see CREATE VIEW IF NOT EXISTS (I think there are only two occurrences of it), change it to CREATE VIEW (i.e. drop the IF NOT EXISTS clause).
|
That worked on the next 2 errors. Thank you!
Now I have a new error: ERROR 1146 (42S02): Table 'peq.botguildmembers' doesn't exist Query OK, 0 rows affected, 1 warning (0.00 sec) EDIT: I opened load_bots.sql and moved the line "source player_tables/botguildmembers.sql;" to the top of list above "source player_tables/bots.sql;" and it works! Thanks so much for help guys! |
The correct order of statements in load_bots.sql appears as if it should be:
Code:
source player_tables/botguildmembers.sql; |
All times are GMT -4. The time now is 12:30 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.