forked from juagarfer4/Deliberations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initialize.sql
24 lines (13 loc) · 948 Bytes
/
initialize.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
start transaction;
create user 'del-user'@'%' identified by password '*EE89F5183D614BA3B739D1872158684DDB27BBA7';
create user 'del-manager'@'%' identified by password '*6AEE22A9E5CB25E3944BFAB0C57E5D4D834EF1A1';
# Privilegios para `deliberations-manager`@`%`
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, TRIGGER ON *.* TO 'del-manager'@'%' IDENTIFIED BY PASSWORD '*6AEE22A9E5CB25E3944BFAB0C57E5D4D834EF1A1' WITH GRANT OPTION;
# Privilegios para `deliberations-user`@`%`
GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'del-user'@'%' IDENTIFIED BY PASSWORD '*EE89F5183D614BA3B739D1872158684DDB27BBA7' WITH GRANT OPTION;
-- Base de datos: `deliberations`
--
CREATE DATABASE IF NOT EXISTS `deliberations` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `deliberations`;
SET NAMES utf8;
commit;