How to Connecting MySQL Using Connector

BestCloudHostingASP.NET | The connect() constructor creates a connection to the MySQL server and returns a MySQLConnection object. The following example shows how to connect to the MySQL server: import mysql.connector cnx = mysql.connector.connect(user=’scott’, password=’tiger’, host=’127.0.0.1′, database=’employees’) cnx.close() It is also possible to create connection objects using the connection.MySQLConnection() class: from mysql.connector import (connection) cnx =

error: Content is protected !!