I am currently working on a Django application. I follow the tutorial "tangowithdjango" which uses Django 1.54. They use Sql-lite in their tutorial, but I plan to build this application for the most reliable purpose, so I am trying to connect MySQL instead.
Needless to say, it was a nightmare. I can not get MySQL to connect to life.
Here is what my settings.py looks like:
DATABASE_PATH = os.path.join(PROJECT_PATH, 'app.db') DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'rideb', 'USER': 'root', 'PASSWORD': 'nantucket', #'HOST': 'localhost', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP. #'PORT': '', # Set to empty string for default. } }
And here is my conclusion that I get ...
(rideb) grantmcgovern@gMAC :~/Dropbox/Developer/Projects/RideB/master$ python manage.py syncdb Segmentation fault: 11
I installed python-mysqldb
and now I just get this and I am very perplexed, to say the least. Is this a Django compatibility issue?
Everything works fine, as the SQL-lite tutorial suggests, but doesn't want to use it.
OS:
Mac OSX 10.10 Yosemite
MySQL (installed via .dmg on the Oracle website):
Server version: 5.6.19 MySQL Community Server (GPL)
source share