Last active
December 31, 2015 15:22
-
-
Save zunman/12caa03cb6ba7b76b63a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mysql –u root –p | |
mysql> create database testdb; | |
mysql> create database rman; | |
mysql> create database hive; | |
mysql> create database oozie; | |
mysql> grant all on testdb.* to 'root' identified by 'password'; | |
mysql> grant all on rman.* to 'rman' identified by 'rman'; | |
mysql> grant all on hive.* to 'hive' identified by 'hive'; | |
mysql> grant all on oozie.* to 'oozie' identified by 'oozie'; | |
mysql> exit; | |
//NOTE: to create users and assign permissions on database: grant all on testdb.* to 'testuser' identified by 'password'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment