From 69c180d2e842995e58cc4cf2b878c2127b9d55fd Mon Sep 17 00:00:00 2001 From: spuch Date: Mon, 20 Mar 2017 15:01:16 +0800 Subject: [PATCH] use CREATE USER to define account authentication characteristics --- mysql/startup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql/startup b/mysql/startup index 320c8bba..4cd6356a 100644 --- a/mysql/startup +++ b/mysql/startup @@ -1,4 +1,4 @@ -DROP USER IF EXISTS 'MYSQL_USER'; +DROP USER IF EXISTS 'MYSQL_USER' IDENTIFIED BY 'MYSQL_PASSWORD'; CREATE USER 'MYSQL_USER'@'%'; CREATE DATABASE IF NOT EXISTS MYSQL_DATABASE; -GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD'; +GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%';