Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Prepare MySQL or MariaDB Database for PowerDNS Admin
This guide will show you how to prepare a MySQL or MariaDB database for PowerDNS-Admin.
mysql -u root -p(then enter your MySQL/MariaDB root users password)
CREATE DATABASE powerdnsadmin CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON powerdnsadmin.* TO 'pdnsadminuser'@'%' IDENTIFIED BY 'p4ssw0rd';
If you plan to manage large zones, you may encounter some issues while applying changes. This is due to PowerDNS-Admin trying to insert the entire modified zone into the column history.detail.
Using MySQL/MariaDB, this column is created by default as TEXT and thus limited to 65,535 characters.
Convert the column to MEDIUMTEXT:
ALTER TABLE history MODIFY detail MEDIUMTEXT;