Answers for "connect to mysql using connector/python"

14

python install mysql connector

pip3 install mysql-connector-python  #Python 3
pip install mysql-connector-python
Posted by: Guest on June-09-2020
0

mysql connection python

from sqlalchemy import types, create_engine
import pymysql

try:
	conn = create_engine('mysql+pymysql://user:pass@IP/database_name')
  	print("MySQL Connection Sucessfull!!!!!!!!!!!")

except Exception as err:

	print("MySQL Connection Failed !!!!!!!!!!!")
	print(err)
Posted by: Guest on July-31-2020

Code answers related to "connect to mysql using connector/python"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language