Add create_db.sql for database and user provisioning

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin Hohenberg
2026-06-18 19:16:27 +02:00
parent 7925ac4ba4
commit 71beb2d65d

13
create_db.sql Normal file
View File

@@ -0,0 +1,13 @@
-- Run as root / admin user
-- Usage: mysql -u root -p < create_db.sql
CREATE DATABASE IF NOT EXISTS pops
CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
CREATE USER IF NOT EXISTS 'pops'@'%'
IDENTIFIED WITH caching_sha2_password BY 'changeme';
GRANT SELECT, INSERT, UPDATE, DELETE ON pops.* TO 'pops'@'%';
FLUSH PRIVILEGES;