diff --git a/create_db.sql b/create_db.sql new file mode 100644 index 0000000..7e770ef --- /dev/null +++ b/create_db.sql @@ -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;