<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi there,</p>
<p><br /></p>
<p>I am running PowerDNS authoritative server version 4.5.4 that I recently migrated from sqlite3 backend to mysql backend and running to an issue that after starting the server for over 30 minutes, it starts to lose connection to the MySQL database when updating any record as below:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<p>Backend reported permanent error which prevented lookup (GSQLBackend unable to lookup 'example.com|ANY':Could not execute mysql statement: SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name=? and domain_id=?: Lost connection to MySQL server during query), aborting,<br />TCP nameserver had error, cycling backend: GSQLBackend unable to lookup 'example.com|ANY':Could not execute mysql statement: SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records WHERE disabled=0 and name=? and domain_id=?: Lost connection to MySQL server during query,<br />TCP server is without backend connections, launching<br /><span style="font-size: small;"></span></p>
</blockquote>
<p>I found the issue is quite similar to <a href="https://github.com/PowerDNS/pdns/issues/3824">https://github.com/PowerDNS/pdns/issues/3824</a> and I have my.cnf with wait_timeout and interactive_timeout set to 28800.</p>
<p>Thanks for any suggestions!</p>
<p>Chhaily</p>
</body></html>