Skip to content

Instantly share code, notes, and snippets.

@cdracars
Created May 5, 2016 14:18
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 cdracars/aa9fc38ee518504a01402886e3cc5a30 to your computer and use it in GitHub Desktop.
Save cdracars/aa9fc38ee518504a01402886e3cc5a30 to your computer and use it in GitHub Desktop.
mysql -u root
SELECT PASSWORD('MYFANCYPASSWORD')
copy the output hash * and all.
CREATE USER 'myfancyusername'@'%' IDENTIFIED BY PASSWORD '*HASH';
GRANT ALL PRIVILEGES ON *.* TO 'myfancyusername'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment