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