Professional Documents
Culture Documents
MySQL PDF
MySQL PDF
Connectivity
with Python
Quick Guide
1. Installation
2. PIP installation
3. Importing module
4. Connecting with MySQL database
5. Creating cursor instance
6. Executing Queries
7. Getting output in Python
8. Saving
Step 1 : Installation
Download and install
Python 3.7.2 and MySQL
5.1 on your computer
making sure that you
have enabled “ADD TO
PATH” check box while
installing both
Step 2 : PIP Installation
Open command prompt (your
system’s system client) and
type the following syntax
pip install mysql-connector
Step 3 : Importing module