Commit 69c180d2 authored by spuch's avatar spuch

use CREATE USER to define account authentication characteristics

parent 9ae6e45d
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'@'%';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment