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

**URL:** <https://forum.core-electronics.com.au/t/raspberry-pi-3b-cant-install-mysql-for-python/3978>\
**Category:** Raspberry Pi\
**Created:** [21 November 2018 01:13 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-3b-cant-install-mysql-for-python/3978 "2018-11-21T01:13:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russell74506](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Russell74506](https://forum.core-electronics.com.au/u/Russell74506)\
**Post date:** [21 November 2018 01:13 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-3b-cant-install-mysql-for-python/3978/1 "2018-11-21T01:13:40Z")

</div>

I got this instruction to install mysql from:  
[http://raspberrywebserver.com/sql-databases/using-mysql-on-a-raspberry-pi.html](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.

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [21 November 2018 03:46 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-3b-cant-install-mysql-for-python/3978/2 "2018-11-21T03:46:35Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Russell74506](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Russell74506](https://forum.core-electronics.com.au/u/Russell74506)\
**Post date:** [21 November 2018 05:41 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-3b-cant-install-mysql-for-python/3978/3 "2018-11-21T05:41:49Z")

</div>

Hi Stephen,

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

Many thanks

Russell Spencer
