Last active
January 18, 2021 21:35
-
-
Save nuclearglow/d204c6e22241dc87d8c85f01a833d05e to your computer and use it in GitHub Desktop.
MySQL basic admin
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
CREATE DATABASE db CHARACTER SET utf8 COLLATE 'utf8_general_ci'; | |
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON db.* TO 'username'@'localhost'; | |
GRANT FILE ON *.* TO 'username'@'localhost'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment