Created
March 30, 2020 06:28
-
-
Save ilovejs/34e28de5db73791df97e426a93f4a3e5 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
CREATE USER 'newuser'@'%' IDENTIFIED BY 'user_password'; | |
DROP user 'qor'@'localhost'; | |
CREATE USER 'qor'@'%' IDENTIFIED BY 'qor'; | |
CREATE DATABASE qor_test; | |
GRANT ALL ON qor_test.* TO 'qor'@'localhost'; | |
GRANT ALL ON qor_test.* TO 'qor'@'%'; | |
ALTER USER 'qor'@'localhost' IDENTIFIED BY 'qor'; | |
FLUSH PRIVILEGES; | |
UPDATE mysql.user | |
SET authentication_string = PASSWORD('qor') | |
WHERE User = 'qor' AND Host = 'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment