Skip to content

Instantly share code, notes, and snippets.

@fotinakis
Created May 6, 2015 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fotinakis/d9c38878c6adf8f802ff to your computer and use it in GitHub Desktop.
Save fotinakis/d9c38878c6adf8f802ff to your computer and use it in GitHub Desktop.
SQL: create a new user, grant all privileges, and require SSL
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