13 lines
397 B
MySQL
13 lines
397 B
MySQL
|
-- create databases
|
||
|
CREATE DATABASE IF NOT EXISTS `gitea`;
|
||
|
CREATE DATABASE IF NOT EXISTS `flask`;
|
||
|
|
||
|
-- create root user and grant rights
|
||
|
CREATE USER 'gitea' IDENTIFIED BY 'giteap';
|
||
|
CREATE USER 'flasku' IDENTIFIED BY 'flaskp';
|
||
|
--CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'gitea';
|
||
|
--GRANT ALL ON `gitea` TO 'gitea'@'localhost';
|
||
|
GRANT ALL ON gitea.* TO 'gitea';
|
||
|
GRANT ALL ON flask.* TO 'flasku';
|
||
|
|