Question

I installed python-mysqldb using

sudo apt-get install python-mysqldb

I have tried to use it unsuccessfully. The following commands do not work in Python prompt:

import python-mysqldb

Or

import mysqldb

How can I solve this problem?

Was it helpful?

Solution

The package name is "MySQLdb". Case counts.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top