Raspberry Pi 3B+ can't install mysql for python

I got this instruction to install mysql from:
http://raspberrywebserver.com/sql-databases/using-mysql-on-a-raspberry-pi.html

in shell typed:
sudo apt-get install mysql-server python-mysqldb
got reply:
reading package lists…done
Building dependency tree
reading state information… done
E: Unable to locate package python-msqldb

I’m not fussed which SQL database I use I just want one I can work with through python. I intend to have one task running to fill the database with data from CANBUS feed which comes from an arduino. Then I want to read this data in another task to display line graphs using the PLOTY package. The PLOTY website suggests using mySQL, that’s why I tried it first.

Hi Russell,

Is your Raspberry Pi connected to the internet? Try this:

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install mysql-server
sudo apt-get install python-mysqldb

Let me know how it works out!

1 Like

Hi Stephen,

This worked! Now I can start learning to drive it.

Many thanks

Russell Spencer

3 Likes