write the syntax of connect method python
Answers
Answered by
1
Explanation:
Creating the connection
To create a connection between the MySQL database and the python application, the connect() method of mysql.connector module is used.
Pass the database details like HostName, username, and the database password in the method call. The method returns the connection object.
The syntax to use the connect() is given below.
Similar questions