Created
January 3, 2019 12:01
-
-
Save andriyun/8099f083af910c45924e440200cfca89 to your computer and use it in GitHub Desktop.
SQL sources management (create/remove database/user)
This file contains hidden or 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
CREATE DATABASE db_name; | |
GRANT ALL PRIVILEGES ON db_name.* TO 'db_user'@'localhost' IDENTIFIED BY '[pass]'; | |
DROP DATABASE db_name; | |
DROP user db_user@localhost; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment