7 lines
230 B
MySQL
7 lines
230 B
MySQL
|
\getenv db_name DB_NAME
|
||
|
\getenv webapp_user DB_USER
|
||
|
\getenv webapp_password DB_PASSWORD
|
||
|
|
||
|
CREATE ROLE :webapp_user WITH LOGIN ENCRYPTED PASSWORD :'webapp_password';
|
||
|
CREATE DATABASE :db_name WITH TEMPLATE=template0 ENCODING='UTF8';
|