anantamukhta / SEBC

0 stars 0 forks source link

Exit-test: Install Database #10

Open anantamukhta opened 6 years ago

anantamukhta commented 6 years ago

Install MySQL 5.5 or MariaDB 5.5 on the first node listed in 0_setup.md

anantamukhta commented 6 years ago

create database scm DEFAULT CHARACTER SET utf8; grant all on scm. TO 'scm'@'%' IDENTIFIED BY 'scm'; grant all on scm. TO 'scm'@'localhost' IDENTIFIED BY 'scm'; grant all on scm.* TO 'scm'@'172.31.29.229' IDENTIFIED BY 'scm';

create database rman DEFAULT CHARACTER SET utf8; grant all on rman. TO 'rman'@'%' IDENTIFIED BY 'rman'; grant all on rman. TO 'rman'@'localhost' IDENTIFIED BY 'rman'; grant all on rman.* TO 'rman'@'172.31.29.229' IDENTIFIED BY 'rman';

create database hive DEFAULT CHARACTER SET utf8; grant all on hive. TO 'hive'@'%' IDENTIFIED BY 'hive'; grant all on hive. TO 'hive'@'localhost' IDENTIFIED BY 'hive'; grant all on hive.* TO 'hive'@'172.31.29.229' IDENTIFIED BY 'hive';

create database oozie DEFAULT CHARACTER SET utf8; grant all on oozie. TO 'oozie'@'%' IDENTIFIED BY 'oozie'; grant all on oozie. TO 'oozie'@'localhost' IDENTIFIED BY 'oozie'; grant all on oozie.* TO 'oozie'@'172.31.29.229' IDENTIFIED BY 'oozie';

create database hue DEFAULT CHARACTER SET utf8; grant all on hue. TO 'hue'@'%' IDENTIFIED BY 'hue'; grant all on hue. TO 'hue'@'localhost' IDENTIFIED BY 'hue'; grant all on hue.* TO 'hue'@'172.31.29.229' IDENTIFIED BY 'hue';

create database sentry DEFAULT CHARACTER SET utf8; grant all on sentry. TO 'sentry'@'%' IDENTIFIED BY 'sentry'; grant all on sentry. TO 'sentry'@'localhost' IDENTIFIED BY 'sentry'; grant all on sentry.* TO 'sentry'@'172.31.29.229' IDENTIFIED BY 'sentry';

anantamukhta commented 6 years ago

Connection id: 8 Current database:
Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server: MariaDB Server version: 5.5.60-MariaDB MariaDB Server Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client characterset: utf8 Conn. characterset: utf8 UNIX socket: /var/lib/mysql/mysql.sock Uptime: 9 min 22 sec

Threads: 1 Questions: 47 Slow queries: 0 Opens: 0 Flush tables: 2 Open tables: 26 Queries per second avg: 0.083