Python Script to connect MySQL Database on Linux:
I explored two options to connect MySQL database from Python script:
01. mysql.connector - Explore more about mysql.connector / Python
02, MySQLdb module - Explore more about MySQLdb
mysql.cnnector:
Download mysql.connector from MySQL Community Download
Install mysql.connector on Linux:
Using pip:
# pip install mysql-connector-python
Using yum:
# yum update mysql-community-release
# yum install mysql-connector-python
Explore mysql.connector connection examples
Comments
Post a Comment