Check out example codes for "No module named 'MySQLdb'". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

sudo apt-get install -y python3-mysqldb

Learn ReactJs, React Native from akashmittal.com