본문 바로가기

etc

임시저장저장

brew install mysql

brew link --overwrite --dry-run mysql

brew link mysql


pip install MySQL-python 

import pymysql

pymysql.install_as_MySQLdb()



DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.mysql',
'NAME': 'localdb',
'USER': 'mysql_local',
'PASSWORD': 'ghdehdgus',
"HOST": '',
'PORT': '',
},
}


create database localdb;

create user mysql_local identified by 'ghdehdgus';

grant all on localdb.* to 'mysql_local'@'%';

flush privileges;