Created
July 30, 2018 20:53
-
-
Save kiproping/028b071926fcbb81b2d2ae760c1b1154 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
#List all users | |
SELECT User FROM mysql.user; | |
# Create new user | |
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
# Graniting priviledges (databs.table) | |
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment