Files
asepharyana-hub/infra/config/mysql/init.sql/00_init_user.sql
T

11 lines
305 B
SQL
Raw Normal View History

2026-07-09 22:08:26 +07:00
-- Create database if not exists
CREATE DATABASE IF NOT EXISTS `tracer_study`;
-- Create dedicated user for tracer_study
CREATE USER IF NOT EXISTS 'tracerstudy'@'%' IDENTIFIED BY 'tracerstudy_secret';
GRANT ALL PRIVILEGES ON `tracer_study`.* TO 'tracerstudy'@'%';
-- Flush privileges
FLUSH PRIVILEGES;