+ 17

How to connect sql with python

How to connect python with sql workbench

19th May 2022, 5:55 AM
Rakshit Pahel
Rakshit Pahel - avatar
2 Respostas
+ 7
Use SQL connector - Something like this.. import mysql.connector mydb = mysql.connector.connect( host="localhost", user="yourusername", password="yourpassword", port = portno, database='whatever db you want' ) print(mydb)
19th May 2022, 6:17 AM
Venkatesh(Venki)
Venkatesh(Venki) - avatar
+ 12
Thanks bhai 😊😊
19th May 2022, 7:52 AM
Rakshit Pahel
Rakshit Pahel - avatar