Skip to content

Instantly share code, notes, and snippets.

@dbrugne
Last active August 29, 2015 13:56
Show Gist options
  • Save dbrugne/9093842 to your computer and use it in GitHub Desktop.
Save dbrugne/9093842 to your computer and use it in GitHub Desktop.
Create a new user and an associated database in MySQL
DROP DATABASE foo;
CREATE DATABASE foo;
GRANT ALL ON foo.* TO foo@localhost IDENTIFIED BY 'fooPassword';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment