Skip to content

Instantly share code, notes, and snippets.

@rektide
Created January 31, 2013 17:59
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 rektide/4684846 to your computer and use it in GitHub Desktop.
Save rektide/4684846 to your computer and use it in GitHub Desktop.
mysql creating a user
mysql> create user 'foo'@'%' identified by 'apass';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
~/$ mysql -u foo -p
Enter password:
ERROR 1045 (28000): Access denied for user 'foo'@'localhost' (using password: YES)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment