Got an error while trying to use MySql as DB

20 views
Skip to first unread message

satyaakam goswami

unread,
Dec 30, 2012, 9:48:35 AM12/30/12
to fossa...@googlegroups.com
Hi,
     anyone tried using MySql as db i am getting the following error , 


in the production system we will be using MySql, Gunicorn and  Nginx 


-Satya

satyaakam goswami

unread,
Dec 30, 2012, 11:12:12 AM12/30/12
to fossa...@googlegroups.com
On Sun, Dec 30, 2012 at 8:18 PM, satyaakam goswami <saty...@gmail.com> wrote:
Hi,
     anyone tried using MySql as db i am getting the following error , 


in the production system we will be using MySql, Gunicorn and  Nginx 


trying to set the following line in the settings.py

'OPTIONS': {'init_command': 'SET storage_engine=InnoDB' 'SET foreign_key_checks = 0'},

still getting the following error 

_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign_key_checks = 0' at line 1")


-Satya

satyaakam goswami

unread,
Dec 30, 2012, 11:37:50 AM12/30/12
to fossa...@googlegroups.com

satyaakam goswami

unread,
Jan 1, 2013, 7:18:26 AM1/1/13
to fossa...@googlegroups.com
We have to use this patched version pip install -e git+git://github.com/kipanshi/djang...@1.3.1.1#egg=django-1.3.1.1 of Django in order to overcome this Bug

i tested it worked fine for me .

-Satya
Reply all
Reply to author
Forward
0 new messages