Skip to content

Instantly share code, notes, and snippets.

@bjdixon bjdixon/create_mysql_db
Last active Aug 29, 2015

What would you like to do?
create mysql database with owner for django
$ mysql -h host -u user -p
mysql> CREATE DATABASE dbname;
mysql> USE dbname
mysql> GRANT USAGE ON *.* TO dbuser@localhost IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@'localhost';
mysql> quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.