Database connection between python & mysql

#!/usr/bin/python
import MySQLdb
db = MySQLdb.connect(“localhost”,”user”,”password”,”dbname” )
cursor = db.cursor()