Created
September 25, 2020 19:03
-
-
Save goyuninfo/b516cabcbd584f84db23ff1ad7f71aba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-- Grant read-only permission to the MySQL user | |
-- Copy the following command and paste them into a MySQL shell. | |
GRANT SELECT, SHOW VIEW ON $database_name.* TO $user@'127.0.0.1' IDENTIFIED BY '$password'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment