mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-21 21:08:48 -05:00
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
CREATE DATABASE mail DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
|
CREATE DATABASE mail_extra DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
|
CREATE DATABASE captcha DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
|
CREATE DATABASE store DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
|
CREATE DATABASE postfix DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
|
CREATE DATABASE james CHARACTER SET utf8;
|
|
|
|
CREATE USER 'mail'@'localhost' IDENTIFIED BY 'MAIL_PASSWORD';
|
|
CREATE USER 'mail_extra'@'localhost' IDENTIFIED BY 'MAIL_EXTRA_PASSWORD';
|
|
CREATE USER 'captcha'@'localhost' IDENTIFIED BY 'CAPTCHA_PASSWORD';
|
|
CREATE USER 'store'@'localhost' IDENTIFIED BY 'STORE_PASSWORD';
|
|
CREATE USER 'james'@'localhost' IDENTIFIED BY 'JAMES_PASSWORD';
|
|
CREATE USER 'postfix'@'localhost' IDENTIFIED BY 'postfix';
|
|
|
|
GRANT ALL PRIVILEGES ON mail.* TO 'mail'@'localhost';
|
|
GRANT ALL PRIVILEGES ON mail_extra.* TO 'mail_extra'@'localhost';
|
|
GRANT ALL PRIVILEGES ON captcha.* TO 'captcha'@'localhost';
|
|
GRANT ALL PRIVILEGES ON store.* TO 'store'@'localhost';
|
|
GRANT ALL PRIVILEGES ON james.* TO 'james'@'localhost';
|
|
GRANT ALL PRIVILEGES ON postfix.* TO 'postfix'@'localhost';
|