error loading mysqldb module.

C++
sudo apt-get install libmysqlclient-dev
sudo apt-get install libssl-dev
pip install mysqlclient

#for Debian
su apt install libmysqlclient-dev
su apt install libssl-dev
pip install mysqlclientpip3 install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip
Source

Also in C++: