first commit
This commit is contained in:
6
templates/create_db.j2
Normal file
6
templates/create_db.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
DROP DATABASE IF EXISTS {{ db_name }};
|
||||
DROP USER IF EXISTS {{ db_user }};
|
||||
CREATE DATABASE {{ db_name }};
|
||||
CREATE USER {{ db_user }} WITH ENCRYPTED PASSWORD '{{ db_passwd }}';
|
||||
GRANT ALL PRIVILEGES ON {{ db_name }} TO {{ db_user }};
|
||||
ALTER DATABASE {{ db_name }} OWNER TO {{ db_user }};
|
||||
Reference in New Issue
Block a user