Created
January 10, 2023 04:37
-
-
Save mdestafadilah/6e863b1d5c1eaea48280b1150122e65d to your computer and use it in GitHub Desktop.
USER MYSQL
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 USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION; | |
CREATE USER 'username'@'%' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
``` | |
SOURCE:https://stackoverflow.com/a/18821224 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment