<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 21, 2015 at 5:00 PM, Gabriel Marais <span dir="ltr"><<a href="mailto:gabriel.j.marais@gmail.com" target="_blank">gabriel.j.marais@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Guys<br>
<br>
Seems like I have hit a brick wall. I have PowerDNS 2.9.x running as master and 2 slaves. I am busy moving over to Ubuntu 14.x on newly installed servers and as such I ended up with PowerDNS 3.x which is not compatible with the older 2.9 schema on MySQL.<br>
<br>
I have read in a thread that one could use custom queries to overcome the immediate issue of moving a complete DNS implementation over to the version 3.x schema but I cannot seem to find the custom queries to overcome the issue from my log :-<br>
<br>
Jul 22 01:17:46 hubble pdns[2006]: Backend error: Failed to execute mysql_query, perhaps connection died? Err=1: Unknown column 'auth' in 'field list'<br>
<br>
Ultimately, I would like to move over to PowerDNS 3.x but right now I need to get another 'slave' working which is sitting on PowerDNS 3.x to work with my 2.9 master and database schema.<br>
<br>
Can anyone perhaps point me in the right direction with the custom queries to accommodate the missing "auth" column in the new DB schema?<br></blockquote><div><br></div><div><br></div><div>I limped by for a little while with these queries, in the middle of a 2.9.x->3.x upgrade. It's been long enough now that I couldn't tell you what negative side effects it had, but I do remember that AXFR's did *NOT* work with the below queries. IIRC with this setup, AXFRs will actually cause a restart of pdns, so you'd want to get off of it pretty quick.</div><div><br></div><div># Use old queries till we get schema updated</div><div>gmysql-basic-query=SELECT content,ttl,prio,type,domain_id,name FROM records WHERE type='%s' and name='%s'</div><div>gmysql-any-id-query=SELECT content,ttl,prio,type,domain_id,name FROM records WHERE name='%s' and domain_id=%d</div><div>gmysql-list-query=SELECT content,ttl,prio,type,domain_id,name FROM records WHERE 0=%d and domain_id='%d' order by name, type </div><div><br></div><div><br></div><div>At the same time, the 2.9.x boxes might work just fine (but you'd obviously want to test first) with the 3.x schema, though I'm assuming you're doing mysql replication.</div></div></div></div>