How to connect database using MySQL, can anyone answer ??? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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