Verifying MySQL Connector/Python installation


$python3
Python 3.10.6 (main, Aug 10 2022, 11:19:32) [GCC 12.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql.connector
>>> 
>>> 
>>> mysql.connector.connect(host='localhost',
...                         database='learning',
...                         user='jeff',
...                         password='sixer')
<mysql.connector.connection_cext.CMySQLConnection object at 0x7f9ddd630400>
>>> 
$cat ted.py 
import mysql.connector


mysql.connector.connect(host='localhost',
			database='learning',
			user='jeff',
			password='sixer')
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: