Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
initial MySQL setup before hooking up a Django project
#create the database
CREATE DATABASE [dbname] CHARACTER SET utf8;
#create user
CREATE USER 'django_user'@'localhost' IDENTIFIED BY 'thepassword';
#give user permissions to db (probably not a great idea to GRANT ALL unless you really have to)
# (replace django.* with [mydatabasename].*)
GRANT ALL ON django.* TO 'django_user'@'localhost';
@danidavid

This comment has been minimized.

Copy link

danidavid commented May 1, 2019

Thanks for your contribution. <3

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.