labelbase/mysql/init.sql
Xavier Fiechter 653fb3d47b .
2024-03-04 12:07:29 +01:00

16 lines
353 B
SQL

-- File: init.sql
-- Create the database
CREATE DATABASE IF NOT EXISTS labelbase;
-- Switch to the database
USE labelbase;
-- Create the user
CREATE USER 'ulabelbase'@'%' IDENTIFIED BY '$MYSQL_PASSWORD';
-- Grant privileges to the user
GRANT ALL PRIVILEGES ON labelbase.* TO 'ulabelbase'@'%';
-- Flush privileges to apply changes
FLUSH PRIVILEGES;