collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: MySQL error running 0.3.4 svn  (Read 3679 times)

0 Members and 1 Guest are viewing this topic.

Offline Vallaroo

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
MySQL error running 0.3.4 svn
« on: June 30, 2006, 07:52:49 pm »
When i start the bot i get the following errors:

Connected to MySQL
MySQL error (# 0) on query: ALTER TABLE admin_groups ADD description VARCHAR(80)

Duplicate column name 'description'
MySQL error (# 1) on query: ALTER TABLE admin_groups ADD short VARCHAR(5)

MySQL error (# 2) on query: ALTER IGNORE TABLE guests ADD COLUMN name VARCHAR(25
) NOT NULL AFTER id
Duplicate column name 'name'
MySQL error (# 3) on query: ALTER IGNORE TABLE guests ADD COLUMN timeadd INT NOT
 NULL AFTER name
Duplicate column name 'timeadd'
MySQL error (# 4) on query: ALTER IGNORE TABLE guests ADD COLUMN addby VARCHAR(2
5) NOT NULL AFTER timeadd
Duplicate column name 'addby'

and a few:

MySQL error (# 5) on query: SELECT nickname, level, rank_name, profession, id, a
ilevel FROM members WHERE id = 790755685
Table 'polbot2.members' doesn't exist

Looking at the DB the members table doesnt exist.

I installed 0.3.4 in an empty database.

Another thing too, all commands only work in tells. How can i allow them to work in gc ?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: MySQL error running 0.3.4 svn
« Reply #1 on: June 30, 2006, 08:54:52 pm »
The ALTER MySQL errors can be ignored.
You can comment out those queries from the modules that call them since they are only needed to be run once.

Error #5 is likely from the Online module.
I just committed a fix for that issue to svn, so do an update.

To adjust commands access, /tell botname !commands

When running svn versions, be sure to keep an eye on http://bebot.link/index.php/topic,147.105.html for any information related to SVN being broken etc.
BeBot Founder and Fixer Kingpin

Offline Vallaroo

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: MySQL error running 0.3.4 svn
« Reply #2 on: July 01, 2006, 02:08:31 pm »
Thank you for the fast response :)

I updated online.php as you suggested, and the previous error #5 is gone. On the other hand, i now have a new one:

MySQL error (# 5) on query: SELECT nickname, level, org_rank, profession, id, de
fender_rank_id FROM whois WHERE id = 790755685
Unknown column 'nickname' in 'field list'


Also my bot.conf files currently contain 3 SA`s, when i do a /tell mybot admin groups, all groups come up emtpy. So there are no admins/SAs on my bot atm.

Offline Ainen

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: MySQL error running 0.3.4 svn
« Reply #3 on: July 03, 2006, 11:56:27 am »
Think of the bot.conf SA's as hardcoded backdoors. The admin groups command reads from the database and that doesn't include what was put in the conf file.

It's handy for making org non-members SA's.  ;)
BeBot 0.3.4 svn 91 // PHP 4.3.9 // MySQL 4.1.12

Offline Vallaroo

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: MySQL error running 0.3.4 svn
« Reply #4 on: July 03, 2006, 08:04:14 pm »
Well my bot doesnt listen to anyone, and i get "you must be superadmin..." a lot. And i AM superadmin. Btw. in 2.5 those hardcoded guild or not guild SA`s appear in the list. So there is something wrong with my installation running 0.3.4.

Offline Ainen

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: MySQL error running 0.3.4 svn
« Reply #5 on: July 03, 2006, 11:14:54 pm »
My mistake. Mine are there. Are you sure they're in the right format? When I changed from .2.5 to .3 I didn't move my Bot.conf over because I noticed some changes to how it was laid out and stuff (don't exactly remember now), I just re-entered the information.

Code: [Select]
$super_admin["Ainen"] = true;

Sometimes you have to check that the lines aren't accidentally commented out.
BeBot 0.3.4 svn 91 // PHP 4.3.9 // MySQL 4.1.12

Offline Vallaroo

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: MySQL error running 0.3.4 svn
« Reply #6 on: July 07, 2006, 11:25:06 am »
Yep, there are 3 SAs in the conf file, but they dont get added to the DB. And the lines are correct.

Offline Vallaroo

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: MySQL error running 0.3.4 svn
« Reply #7 on: July 07, 2006, 12:06:05 pm »
I added them manually to the DB, works like a charm now.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 675
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal