Files
sql_bank/02_tools.sql

47 lines
733 B
MySQL
Raw Normal View History

2025-11-28 13:40:57 +01:00
create role metabase_user with
login
nosuperuser
nocreatedb
nocreaterole
noinherit
noreplication
connection limit -1
password 'supermotdepasse';
create database metabase
with owner metabase_user;
grant connect on database metabase to metabase_user;
grant usage
on schema public
to metabase_user;
grant select on all tables
in schema public
to metabase_user;
2025-11-28 19:58:26 +01:00
/* User grafana */
2025-11-30 20:44:57 +01:00
create role grafana_user with
login
nosuperuser
nocreatedb
nocreaterole
noinherit
noreplication
connection limit -1
password 'supermotdepasse';
grant usage
on schema public
to grafana_user;
grant select on all tables
in schema public
to grafana_user;
create extension anon;
select anon.init();