database could't connect in python to atom

69 views
Skip to first unread message

MEGA NATHAN

unread,
Oct 22, 2019, 11:07:03 PM10/22/19
to Django users
Hi.

AttributeError: module 'mysql.connector' has no attribute 'connect'





regards
Meganathan,
db1.PNG
db2.PNG
db3.PNG

Suraj Thapa FC

unread,
Oct 22, 2019, 11:25:34 PM10/22/19
to django...@googlegroups.com
You are using wrong syntax for connecting sql

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20f71ae7-75ed-4126-b786-6c675041d9f9%40googlegroups.com.

wd

unread,
Oct 22, 2019, 11:34:05 PM10/22/19
to django...@googlegroups.com
hi,

Maybe you need to check what mysql.connector is. What's the output for 'dir(mysql.connector)' ?

--
Reply all
Reply to author
Forward
0 new messages