+ 2

How to connect database using MySQL, can anyone answer ???

Whats the command

22nd Jan 2022, 4:43 AM
Mahesh Umale
Mahesh Umale - avatar
3 Answers
+ 3
Judging by your chosen nick you want the answer for python. import mysql.connector mydb = mysql.connector.connect( host="localhost", user="yourusername", password="yourpassword" ) That requires you to install the mysql-connector-python module using pip. You find the above example code and more information here: https://www.w3schools.com/python/python_mysql_getstarted.asp Further links (which I have not read): https://realpython.com/python-mysql/ https://www.mysqltutorial.org/python-mysql/
22nd Jan 2022, 4:51 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 3
Thanks buddy đŸ‘đŸ»
22nd Jan 2022, 4:52 AM
Mahesh Umale
Mahesh Umale - avatar
+ 1
You're welcome.
22nd Jan 2022, 4:52 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar