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: Sharing a single database using 2 guild bots  (Read 8179 times)

0 Members and 1 Guest are viewing this topic.

Offline RaZeR

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Sharing a single database using 2 guild bots
« on: November 27, 2012, 09:49:56 am »
Does anyone foresee any problems in running 2 guild bots off the same database. My guild is in the process of moving to a different server, and I will be running the 2 guild bots on seperate accounts, from separate directories (so they have a different configuration file for the different logins) but using the same database details.

Both guild bots will have the same character name, and the idea is to continue to support players playing on the previous server during the transition.

I don't wish to start-over, or discontinue the old guild bot for quite some time. I've already tested that the guild bot works fine using existing settings on the new server, I just have not tested running 2 at the same time.

BTW: while testing the above I discovered if you have the same character name for your guild bot on a different server but the SAME account, it uses the new character instead of the old one. I tried patching in a "&& dimension=2" to use the old one but ran into problems further in the code.

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: Sharing a single database using 2 guild bots
« Reply #1 on: December 01, 2012, 10:02:00 pm »
You will have to set a prefix for one or both of the bots. In the MySQL.conf file find this line    // $table_prefix = ""; and remove the slashes then indicate what prefix you want to use (for example ucom_) that way you can distinguish which tables belong to what bot.

 

* 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: 585
  • 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