<div dir="ltr"><div>Hey Sven, thanks for the reply. My PowerDNS database and all tables are configured to use the latin1 character set. The only place I've configured UTF-8 is in the MySQL server-wide configuration (my.cnf). However, I was able to repro just now even without this MySQL configuration, so I don't think it's actually the cause.<br></div><div><br></div><div>I've been doing some more digging, and as far as I can tell, this error only happens after upgrading from MySQL 8.0.21 to 8.0.22. I upgraded the MySQL client, server and libraries on a server that was previously not experiencing this error, and the same error started happening. However, I'm unable to find anything in the MySQL changelogs (<a href="https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-22.html">https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-22.html</a>) that would explain this.</div><div><br></div><div>I opened a bug on GitHub: <a href="https://github.com/PowerDNS/pdns/issues/9777">https://github.com/PowerDNS/pdns/issues/9777</a><br></div><div><br></div><div>Thanks,</div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 25, 2020 at 1:44 AM Sven Kieske <<a href="mailto:S.Kieske@mittwald.de">S.Kieske@mittwald.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Di, 2020-11-24 at 20:07 -0800, Daniel Lo Nigro via Pdns-users wrote:<br>
> <br>
> If PowerDNS relies on the character set being explicitly set to latin1 and<br>
> breaks when other character sets (such as UTF-8) are set as the default<br>
> collation on the server, it should explicitly set the character set used by<br>
> the connection to the MySQL server by executing SET NAMES 'latin1' after<br>
> connecting but before executing any 'real' queries. This seems like a bug<br>
> in PowerDNS.<br>
<br>
Hi,<br>
<br>
it's at least explicitly mentioned in the docs to create your database with a latin1 character set:<br>
<br>
<a href="https://docs.powerdns.com/authoritative/guides/basic-database.html" rel="noreferrer" target="_blank">https://docs.powerdns.com/authoritative/guides/basic-database.html</a><br>
<br>
Engine=InnoDB CHARACTER SET 'latin1';<br>
<br>
It's most of the time not a good idea to alter defaults if you do not now the internal working of<br>
the software very well, as can be seen in this example.<br>
<br>
It's up to debate if this is a bug of the software or if the documentation should be more urgent about setting up<br>
the database schema. The current wording is:<br>
<br>
"Example: configuring MySQL"<br>
<br>
This contains some ambiguity (an example is, most of the time, not the only way to do something).<br>
But the rest of the wording is imho relatively clear, that you should not configure the database with a different schema.<br>
<br>
-- <br>
Mit freundlichen Grüßen / Regards<br>
<br>
Sven Kieske<br>
Systementwickler<br>
<br>
<br>
Mittwald CM Service GmbH & Co. KG<br>
Königsberger Straße 4-6<br>
32339 Espelkamp<br>
<br>
Tel.: 05772 / 293-900<br>
Fax: 05772 / 293-333<br>
<br>
<a href="https://www.mittwald.de" rel="noreferrer" target="_blank">https://www.mittwald.de</a><br>
<br>
Geschäftsführer: Robert Meyer, Florian Jürgens<br>
<br>
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen<br>
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen<br>
<br>
Informationen zur Datenverarbeitung im Rahmen unserer Geschäftstätigkeit <br>
gemäß Art. 13-14 DSGVO sind unter <a href="http://www.mittwald.de/ds" rel="noreferrer" target="_blank">www.mittwald.de/ds</a> abrufbar.<br>
<br>
</blockquote></div>