pip install mysql-python python import MySQLdb python python cursor = db.cursor() results = cursor.fetchall() for row in results: python db.close()