Created
May 6, 2015 01:28
-
-
Save fotinakis/d9c38878c6adf8f802ff to your computer and use it in GitHub Desktop.
SQL: create a new user, grant all privileges, and require SSL
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
CREATE USER 'some_user'@'%' IDENTIFIED BY '<autogenerated password here>'; | |
GRANT ALL PRIVILEGES ON dbname.* TO 'some_user'@'%' REQUIRE SSL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment