Ansh Srivastava
2018-11-11 11:56:37 UTC
I m tryin' to connect mysql database with django, for that, I did this:-
python manage.py runserver
but, this new mess came around sayin' :-
(django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?).
But when I m tryin' to install mysqlclient through pip as:-
pip install mysqlclient
another creepy thing comes up:-
_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No
such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2017\\Comm
unity\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x86\\cl.exe' failed
with exit status 2
For installing mysql.h, I have downloaded mysql connector too, but the
error continues. I don't know how to proceed furher. Any help would be
appreciated.
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
11/11/18,
5:26:30 PM
python manage.py runserver
but, this new mess came around sayin' :-
(django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?).
But when I m tryin' to install mysqlclient through pip as:-
pip install mysqlclient
another creepy thing comes up:-
_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No
such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2017\\Comm
unity\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x86\\cl.exe' failed
with exit status 2
For installing mysql.h, I have downloaded mysql connector too, but the
error continues. I don't know how to proceed furher. Any help would be
appreciated.
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
11/11/18,
5:26:30 PM
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHMQ531EeRkAQ6s7sYAd7C_syN%2BUAkoSwD%3D7jteHvZjBhrYp8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHMQ531EeRkAQ6s7sYAd7C_syN%2BUAkoSwD%3D7jteHvZjBhrYp8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.