Hello guys, I'm having problems with the m_mysql module compilation, the configurations of modules.conf and services.conf are fine as I leave here as it has been:
Services.conf :
module
{
name = "db_sql"
#name = "db_sql_live"
/*
* The SQL service db_sql(_live) should use, these are configured in modules.conf.
* For MySQL, this should probably be mysql/main.
*/
engine = "mysql/main"
/*
* An optional prefix to prepended to the name of each created table.
* Do not use the same prefix for other programs.
*/
prefix = "anope_db_"
modules.confmodule
{
name = "m_mysql"
mysql
{
/* The name of this service. */
name = "mysql/main"
database = "useranope"
server = "localhost"
username = "useranope"
password = "password34434"
port = 3306
}
}
I have been seeing the same problem but in the version of the anope 1.8.x / 1.7.x which I leave the link:
https://forum.anope.org/index.php?topic=301.0My problem is that running the services in debug mode I get the following error:
anope@vps126400:~/services/bin$ ./services -nofork -debug | grep sq
......................
[May 09 16:35:18.548756 2017] Debug: Trying to load module: m_mysql
[May 09 16:35:18.551357 2017] Debug: MySQL: Unable to connect to MySQL service mysql/main: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[May 09 16:35:18.551440 2017] Debug: Module m_mysql loaded.
And is that I have installed the lampp that comes with the apache2 + Mysql + php + phpmyadmin packages and I want to run the services on that socket path since I have seen this in "
/opt/lampp/var/mysql/mysql.sock" and at The compilation looks like this route by default: "
/var/run/mysqld/mysqld.sock".
I installed the liberia and dependencies with the following command:
#apt-get install libmysqlclient-dev
I would like to know if there is an option like in previous versions of anope when you did:
./configure --with-mysqlclient-prefix = / opt / lampp / mysql
Or if someone can give me a solution to be able to change the default path that is "
/var/run/mysqld/mysqld.sock" to the lampp path that is "
/opt/lampp/var/mysql/mysql.sock"
I await your contributions, thank you very much