Unable to connect to database

Post Reply
Hostrei
Registered
Posts: 1
Joined: 16 Feb 2017, 19:15

I bought and installed RRPPROXY Domain reseller module with Tools4ISP and I need to install PowerDNS which I done so and it says in putty.
Error below.
According to your instruction tutorial to open /etc/pdns/conf file but i couldnt find /pdns I found /etc/powerdns/conf instead and add the database details following the example you showed but added my own new database. I logged into cpanel created new database, username password, full permissions and changed it with those then when I added ddnsec and restarted I found out it didn't connect to the database -


Feb 16 18:47:54 Caught an exception instantiating a backend: Unable to launch gmysql connection: Unable to connect to database: Unknown MySQL server host '<localhost>' (1)
Feb 16 18:47:54 Cleaning up
Error: Unable to launch gmysql connection: Unable to connect to database: Unknown MySQL server host '<localhost>' (1)
[root@server tmp]#
User avatar
Daniel
Support
Posts: 207
Joined: 02 Aug 2013, 17:50

Please remove the < > characters as they indicatie an full variable

When using the localhost you it would become:
gmysql-host=localhost

Please also see: https://doc.powerdns.com/md/authoritative/installation/
Post Reply