mysql.connector shows the 'connect' module not available
Asked by
Atul
Hello,
I have been using mysql connector from past few months. It was working fine until one fine day I did a fresh installation to upgrade my OS (Ubuntu 12.04). After that I installed the mysql connector and found this annoying problem. I am being able to import 'mysql.connector' module successfully but it gives the following error:
>>> import mysql.connector as sql
>>> conn=sql.
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
conn=
AttributeError: 'module' object has no attribute 'connect'
>>>
Please help me.
Atul
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Geert JM Vanderkelen Edit question
- Solved by:
- Atul
- Solved:
- Last query:
- Last reply:
To post a message you must log in.