Skip to content

Commit 69c180d

Browse files
committed
use CREATE USER to define account authentication characteristics
1 parent 9ae6e45 commit 69c180d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mysql/startup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DROP USER IF EXISTS 'MYSQL_USER';
1+
DROP USER IF EXISTS 'MYSQL_USER' IDENTIFIED BY 'MYSQL_PASSWORD';
22
CREATE USER 'MYSQL_USER'@'%';
33
CREATE DATABASE IF NOT EXISTS MYSQL_DATABASE;
4-
GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD';
4+
GRANT ALL ON MYSQL_DATABASE.* TO 'MYSQL_USER'@'%';

0 commit comments

Comments
 (0)