-2

I am trying to connect to a mysql db. I have installed the mysqldb package but it still says 'ImportError: No module named 'MySQLdb' when I import.

Why?

1
  • I am using ubuntu 13.04, sorry I am new to all this. Commented Nov 24, 2013 at 23:43

1 Answer 1

1

Difficult to say without more detail! Have a look at these:

There's a pretty comprehensive guide for the installation (on Python 3) of the mysql connector here:

How do I connect to a MySQL Database in Python?

Perhaps thats worth another try. Alternatively I have happily used the mysql.connector which I got from here:

http://dev.mysql.com/downloads/connector/python/

Its written in python so may be slower than the first option, which you may or may not care about.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.