I'm playing with my first Raspberry Pi 3 project, and I've hit a snag. I've found some example code which uses MySQL import MySQLdb as mdb
, but when I try to run the code I get a 'No module named 'MySQLdb''...
I've been googling for ages now, and I'm getting no where. Here's a few of the options I've tried:
pip install mysql-python
sudo pip install mysql-python
sudo apt-get install python-mysqldb
sudo apt-get install libmysqlclient-dev
Any suggestions?