Skip to content

Instantly share code, notes, and snippets.

@zunman
Last active December 31, 2015 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zunman/12caa03cb6ba7b76b63a to your computer and use it in GitHub Desktop.
Save zunman/12caa03cb6ba7b76b63a to your computer and use it in GitHub Desktop.
$ 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