2017-03-20 08:01:16 +01:00
|
|
|
DROP USER IF EXISTS 'MYSQL_USER' IDENTIFIED BY 'MYSQL_PASSWORD';
|
2016-11-28 18:52:20 +01:00
|
|
|
CREATE USER 'MYSQL_USER'@'%';
|
|
|
|
CREATE DATABASE IF NOT EXISTS MYSQL_DATABASE;
|
2017-03-20 08:01:16 +01:00
|
|
|
GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%';
|