Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Interact with Mysql  (Read 2860 times)

0 Members and 1 Guest are viewing this topic.

Nexus-

  • Guest
Interact with Mysql
« on: November 27, 2008, 01:43:41 PM »

Hello all,
the mysql base of Anope is in Read Only. I would like to add user, modify settings of channels ...etc. with a Web page writen in PHP. But if I add any data to the mysql base, nothing will be in consideration because the mysql base is in Read Only.
I think to write a script who modify .db files directly.
Do you think this a good idea ?
Do you have an other idea ?

Thank you very much and sorry for my poor english but I am not english.
Logged

deiks

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 139
  • Shizle my nizle
Re: Interact with Mysql
« Reply #1 on: November 27, 2008, 02:25:21 PM »

You must have option in your CP where you setting mysql. Permissions Read, Read/Write, Write
Logged

Nexus-

  • Guest
Re: Interact with Mysql
« Reply #2 on: November 27, 2008, 02:41:08 PM »

It's no problem of permission. The problem is that changes in the mysql database of anope are no effect.
Logged

zEkE

  • Anope User
  • Offline Offline
  • Posts: 34
Re: Interact with Mysql
« Reply #3 on: November 27, 2008, 03:50:11 PM »

MySQL in Anope is a well documented feature.

As of 1.8.0-rc1:
MySQL can write TO the database at regular intervals. However, it updates everything at once, so if there are a large number of nickname or channel registrations it can take 2 or 3 minutes (or more) of services lag as it is all in the same thread.

MySQL can READ FROM the database AT START TIME.

Anope IRC Services CANNOT at this time perform the task you desire using the SQL feature, though it is planned for 1.9.

You may be interested in helping Rob with his XML-RPC module, which could probably be expanded to perform these functions while waiting for the 1.9 SQL Read/Write support.
Logged
Pages: [1]   Go Up