use CREATE USER to define account authentication characteristics
This commit is contained in:
parent
69c180d2e8
commit
d94de05fd4
|
@ -1,4 +1,4 @@
|
||||||
DROP USER IF EXISTS 'MYSQL_USER' IDENTIFIED BY 'MYSQL_PASSWORD';
|
DROP USER IF EXISTS 'MYSQL_USER';
|
||||||
CREATE USER 'MYSQL_USER'@'%';
|
CREATE USER 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD';
|
||||||
CREATE DATABASE IF NOT EXISTS MYSQL_DATABASE;
|
CREATE DATABASE IF NOT EXISTS MYSQL_DATABASE;
|
||||||
GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%';
|
GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%';
|
||||||
|
|
Loading…
Reference in New Issue