Created
May 15, 2022 13:46
-
-
Save mul14/8efd87d13deb1ef39e60a555d79efe50 to your computer and use it in GitHub Desktop.
MySQL: Create new user with native password
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 WITH mysql_native_password BY 'password'; | |
ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'; | |
FLUSH PRIVILEGES; | |
-- Reference: https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment