# MySQL 8

CREATE DATABASE m2 CHARACTER SET utf8;

CREATE USER m2@localhost IDENTIFIED BY "m2";
GRANT ALL ON m2.* TO 'm2'@'localhost';
GRANT PROCESS, SUPER, FILE, REPLICATION SLAVE , REPLICATION CLIENT ON * . * TO 'm2'@'localhost';

CREATE USER m2@127.0.0.1 IDENTIFIED BY "m2";
GRANT ALL ON m2.* TO 'm2'@'127.0.0.1';
GRANT PROCESS, SUPER, FILE, REPLICATION SLAVE , REPLICATION CLIENT ON * . * TO 'm2'@'127.0.0.1';

USE m2;
