Skip to main content

Python MySQL

Python uses mysql.connector package to connect to the MySQL database.

Installing the MySQL connector package in the Python IDE:


  • You can use PIP installation method to install the MySQL connector package.
    • Command for installation is given by:
     python -m pip install mysql-connector

Comments