Q. Why do we use connect () function?

Answer :-

Connect function is use to connect MySQL database with python by following syntax :-

<Connection-Object>= mysql.connector.connect (host = <host-name>, user = <username>,
passwd = <password> [, database = <database>])

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post