adspace


Can python connect to mysql?

Answer Posted / Anish Kumar

Yes, Python can connect to MySQL using libraries such as MySQLdb or pymysql. Here's an example using pymysql:nimport pymysqlnconn = pymysql.connect(host='localhost', user='username', password='password', db='database')

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current mysql version?

1105


How to Change a users password from unix shell.

1223


What is current version of mysql?

1084


Which statement is used in a select query for partial matching?

1247