InspIRCd v2 is coming to the end of its lifetime!
Fixes for security vulnerabilities will be provided until 2021-01-01 but after this date v2 will no longer be maintained.
InspIRCd v3 contains many new features including full support for all currently ratified IRCv3 extensions and WebSocket connections.
The "mysql" Module
This module depends on a third-party library (libmysqlclient) and must be manually enabled at compile time.
Once you have installed the dependency you can enable this module using the following command:
./configure --enable-extras m_mysql.cpp
This module provides the ability for SQL modules to query a MySQL database.
To load this module use the following
<database> tag defines a MySQL database to connect to. This tag can be defined as many times as required.
|module||Text||None||Required! This MUST be set to "mysql" to connect to a MySQL database.|
|id||Text||None||Required! The name that SQL-using modules can refer to this
|host||Text||None||Required! The hostname or IP address of a MySQL server.|
|port||Number||None||Required! The port on which the MySQL server is listening.|
|user||Text||None||Required! The username to log into the MySQL server with.|
|pass||Text||None||Required! The password to log into the MySQL server with.|
|name||Text||None||Required! The name of the MySQL database to use.|
<database module="mysql" id="opers" host="localhost" port="3306" user="ircd_opers" pass="changeme" name="inspircd">