Interface Python with Mysql – Notes


By Anjeev Kr Singh – Computer Science Educator
Published on : May 5, 2021 | Updated on : May 5, 2021

Real world application needs to manipulate data stored in the database through an application designed, by using any programming language like Python, Java, etc. vIn order to connect to a database from within Python or any other programming language, we need a Driver or Connector library or Interface. vIn case of Python we can use mysql.connector or pymysql library.

What is MySQL Connector/Python

MySQL Connector/Python enables Python programs to access MySQL databases, using an API that is compliant with the Python Database API Specification

Installation MySQL Connector/Python

Use pip to install Connector/Python on most any operating system:

pip install mysql-connector-python

Prerequisite.  :- The Microsoft Visual C++ 2015 Redistributable must be installed on your system.

About the Author

Anjeev Kr Singh

Anjeev Kr Singh

Computer Science Educator, Author, and HOD. Guiding CBSE students in CS, IP, IT, WA & AI via mycstutorial.in. Creator of Question Bank for Class 10 & 12 students.

You cannot copy content of this page

Scroll to Top