CRUD-only was too restrictive — CREATE TABLE and ALTER TABLE are needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
326 B
SQL
14 lines
326 B
SQL
-- 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 ALL PRIVILEGES ON pops.* TO 'pops'@'%';
|
|
|
|
FLUSH PRIVILEGES;
|