When compiling Anope, after having done ./Config, run ./extras and activate m_mysql.cpp.
You can now cd build && make && make install
Then, go to the installation directory (cd ../../services) and edit irc2sql.conf to fill the good values (you must have create the database and user in mysql).
Then, edit services.conf and remove the leading # in:
/*
* IRC2SQL Gateway
*/
#include
{
type = "file"
name = "irc2sql.conf"
}
You can now run your services, they can use MySQL.