mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-10 07:30:26 +00:00
942 B
942 B
Setup MySQL database for PowerDNS-Admin
This guide will show you how to prepare a MySQL or MariaDB database for PowerDNS-Admin.
Setup database:
- ivan@ubuntu:~$
mysql -u root -p
(then enter your MySQL/MariaDB root users password) - mysql>
CREATE DATABASE powerdnsadmin CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
- mysql>
GRANT ALL PRIVILEGES ON powerdnsadmin.* TO 'pdnsadminuser'@'%' IDENTIFIED BY 'p4ssw0rd';
- mysql>
FLUSH PRIVILEGES;
- mysql>
quit
Known issues:
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.
Solution:
Convert the column to MEDIUMTEXT:
USE powerdnsadmin;
ALTER TABLE history MODIFY detail MEDIUMTEXT;