Skip to content

Instantly share code, notes, and snippets.

@tbaschak
Created June 21, 2014 21:50
Show Gist options
  • Save tbaschak/dfda6ab444acadb9090d to your computer and use it in GitHub Desktop.
Save tbaschak/dfda6ab444acadb9090d to your computer and use it in GitHub Desktop.
create a mysql user and database, and give all privileges
mysqladmin -uroot -p create DBNAME
mysql -uroot -p -e "GRANT ALL PRIVILEGES ON DBNAME.* To 'USER'@'localhost' IDENTIFIED BY 'PASSWORD';"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment