mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
16 lines
353 B
SQL
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;
|