blackbirdchess-docker-dev/mysql/startup

5 lines
199 B
Plaintext
Raw Normal View History

2017-03-20 08:40:07 +01:00
DROP USER IF EXISTS 'MYSQL_USER';
CREATE USER 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD';
CREATE DATABASE IF NOT EXISTS `MYSQL_DATABASE`;
2017-03-20 08:41:03 +01:00
GRANT ALL ON `MYSQL_DATABASE`.* TO 'MYSQL_USER'@'%';