Install Python MySQL Connector to Operate MySQL Server

In this tutorial, we will introduce the way to install python mysql connector, which can allow us to connect a mysql server and operate it using python script.

1. Use python pip install to install python mysql connector.

pip install mysql-connector

pip install mysql-connector-python

Then you can start to operate mysql using python.