[Pdns-users] database port
bert hubert
ahu at ds9a.nl
Wed Feb 26 16:38:53 UTC 2003
On Wed, Feb 26, 2003 at 03:54:21PM +0100, Willem de Groot wrote:
>
>
> Hi,
>
> How do I specify the database port number with the gmysql module? I
> couldn't find anything in the docs nor on google.
Right now you don't, I need to code support for this. Nobody wanted this
before. If you are in a hurry, change this in smysql.cc:
if (!mysql_real_connect(&d_db, host.empty() ? 0 : host.c_str(),
user.empty() ? 0 : user.c_str(),
password.empty() ? 0 : password.c_str(),
> database.c_str(), 0,
msocket.empty() ? 0 : msocket.c_str(),
0)) {
into
if (!mysql_real_connect(&d_db, host.empty() ? 0 : host.c_str(),
user.empty() ? 0 : user.c_str(),
password.empty() ? 0 : password.c_str(),
> database.c_str(), 3307,
msocket.empty() ? 0 : msocket.c_str(),
0)) {
And recompile. This will be in 2.9.7 as gmysql-port.
Regards,
bert
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
http://netherlabs.nl Consulting
More information about the Pdns-users
mailing list