Which function is used to connect to database?
The connect() function of mysql.connector is used for establishing connection to a MYSQL database.
connect()