2024-07-06 21:10:44 +00:00
|
|
|
-- create databases
|
|
|
|
CREATE DATABASE IF NOT EXISTS `gitea`;
|
|
|
|
CREATE DATABASE IF NOT EXISTS `flask`;
|
|
|
|
|
|
|
|
-- create root user and grant rights
|
2024-08-06 16:01:04 +00:00
|
|
|
CREATE USER 'gitea'@'gitea.backnet' IDENTIFIED BY 'giteap';
|
|
|
|
CREATE USER 'flasku'@'backend.backnet' IDENTIFIED BY 'flaskp';
|
2024-07-06 21:10:44 +00:00
|
|
|
--CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'gitea';
|
|
|
|
--GRANT ALL ON `gitea` TO 'gitea'@'localhost';
|
2024-08-06 16:01:04 +00:00
|
|
|
GRANT ALL ON gitea.* TO 'gitea'@'gitea.backnet';
|
|
|
|
GRANT ALL ON flask.* TO 'flasku'@'backend.backnet';
|
2024-07-06 21:10:44 +00:00
|
|
|
|