<div dir="ltr">Yeah I'm switching now to 3.4.3 so I can use the docs, thanks for everything :) <div><br></div><div>This patch helped me to find out what queries were failing: <a href="https://github.com/PowerDNS/pdns/pull/2359.patch">https://github.com/PowerDNS/pdns/pull/2359.patch</a></div><div><br></div><div>I'm only switching because 'stable-env' but I'll post more if I need more info </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 3:30 PM, Aki Tuomi <span dir="ltr"><<a href="mailto:cmouse@youzen.ext.b2.fi" target="_blank">cmouse@youzen.ext.b2.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Your version has prepared statements patch in it, which means that the SQL<br>
syntax has been changed. You no longer use %s and %d, you use ? and statement<br>
variable placeholder.<br>
<br>
You can see all the SQLs with pdns_server --launch=gmysql --config | grep gmysql<br>
<br>
Aki<br>
<div><div class="h5"><br>
On Mon, Mar 16, 2015 at 03:21:02PM -0300, Filipe Cifali wrote:<br>
> Sorry, I forgot to mention that:<br>
><br>
> pdns_control version<br>
> git<br>
><br>
> MySQL 5.5.42<br>
><br>
> I'm running on Gentoo latest,<br>
><br>
> ]# head /usr/local/install/pdns/config.log<br>
> This file contains any messages produced by compilers while<br>
> running configure, to aid debugging if configure makes a mistake.<br>
><br>
> It was created by pdns configure git, which was<br>
> generated by GNU Autoconf 2.69. Invocation command line was<br>
><br>
> $ ./configure --with-modules=bind gmysql pipe --without-lua<br>
><br>
> The command output:<br>
><br>
> pdns_server --launch=gmysql --config | grep gmysql-basic-query<br>
> Mar 16 15:20:33 Reading random entropy from '/dev/urandom'<br>
> # gmysql-basic-query Basic query<br>
> # gmysql-basic-query=SELECT<br>
> content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE<br>
> disabled=0 and type=? and name=?<br>
><br>
><br>
><br>
><br>
> On Mon, Mar 16, 2015 at 3:13 PM, Aki Tuomi <<a href="mailto:cmouse@youzen.ext.b2.fi">cmouse@youzen.ext.b2.fi</a>> wrote:<br>
><br>
> > On Mon, Mar 16, 2015 at 01:05:26PM -0300, Filipe Cifali wrote:<br>
> > > Hello all,<br>
> > ><br>
> > > I just subscribed to this mailing, I'm Filipe and I have some experience<br>
> > > with Bind/Named setups with MySQL. Since they both are good but not<br>
> > optimal<br>
> > > I was searching for a replacement and I came across PowerDNS and NSD,<br>
> > right<br>
> > > now I'm trying to do a custom layout for the MySQL queries since I use<br>
> > them<br>
> > > on Bind with the driver, which is quite easy, writing the queries.I came<br>
> > > across the custom queries in the docs:<br>
> > > <a href="https://doc.powerdns.com/md/authoritative/backend-generic-mypgsql/" target="_blank">https://doc.powerdns.com/md/authoritative/backend-generic-mypgsql/</a><br>
> > ><br>
> > > And wrote a simple query:<br>
> > ><br>
> > > gmysql-basic-query=SELECT data,ttl,mx_priority,type,zone,host FROM<br>
> > DNSTable<br>
> > > WHERE type='%s' AND zone='%s' AND active=1<br>
> > ><br>
> ><br>
> > Are you using which version of PowerDNS? Can you check<br>
> ><br>
> > pdns_server --launch=gmysql --config | grep gmysql-basic-query<br>
> ><br>
> > Aki Tuomi<br>
> ><br>
><br>
><br>
><br>
> --<br>
> [ ]'s<br>
><br>
> Filipe Cifali Stangler<br>
<br>
</div></div>> _______________________________________________<br>
> Pdns-users mailing list<br>
> <a href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a><br>
> <a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">[ ]'s<br><br>Filipe Cifali Stangler<br></div>
</div>