Check out example codes for "Error loading MySQLdb module.". It will help you in understanding the concepts better.

Code Example 1

pip3 install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip

Learn ReactJs, React Native from akashmittal.com