Powerdns (PDNS) error libgmysqlbackend.so

After installing PowerDNS you have configured to use a Mysql Server for storing your dns records.
(changed the backend to gmysql in pdns.conf)

The correct syntax for this in the config file is:

#################################
# launch        Which backends to launch and order to query them in
#
launch=gmysql
gmysql-host=127.0.0.1
gmysql-user=xxxxxx
gmysql-password=xxxxxxxx
gmysql-dbname=xxxxxx

When you changed the config, you try to start up the powerdns with the monitor on:

# /etc/init.d/pdns monitor
Sep 05 14:47:54 Unable to load module ‘/usr/lib64/pdns/libgmysqlbackend.so’: /usr/lib64/pdns/libgmysqlbackend.so: cannot open shared object file: No such file or directory
Sep 05 14:47:54 dnsbackend unable to load module in gmysql

Just install pdns-backend-mysql to solve this problem:

#yum install pdns-backend-mysql.x86_64

Check if the problem is solved:

# /etc/init.d/pdns monitor
Sep 05 14:57:23 This is module gmysqlbackend.so reporting
Sep 05 14:57:23 This is a standalone pdns
Sep 05 14:57:23 It is advised to bind to explicit addresses with the –local-address option
Sep 05 14:57:23 UDP server bound to 0.0.0.0:53
Sep 05 14:57:23 TCP server bound to 0.0.0.0:53
Sep 05 14:57:23 PowerDNS 2.9.21 (C) 2001-2006 PowerDNS.COM BV (Apr  1 2008, 12:06:01, gcc 4.1.2 20070626 (Red Hat 4.1.2-14)) starting up
Sep 05 14:57:23 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Sep 05 14:57:23 Set effective group id to 101
Sep 05 14:57:23 Set effective user id to 100
Sep 05 14:57:23 DNS Proxy launched, local port 31313, remote 193.67.79.39:53
Sep 05 14:57:23 Creating backend connection for TCP
Sep 05 14:57:23 gmysql Connection succesful
Sep 05 14:57:23 About to create 3 backend threads for UDP
% Sep 05 14:57:23 Master/slave communicator launching
Sep 05 14:57:23 gmysql Connection succesful
Sep 05 14:57:23 All slave domains are fresh
Sep 05 14:57:23 gmysql Connection succesful
Sep 05 14:57:23 gmysql Connection succesful
Sep 05 14:57:23 gmysql Connection succesful
Sep 05 14:57:23 Done launching threads, ready to distribute questions

Don’t forget to auto start the powerdns service after a server reboot:

#chkconfig pdns on