[Solved] Searching through database with python


Try

import MySQLdb
db = MySQLdb.connect(host="localhost",
                     user="user",
                      passwd="password", 
                      db="database") 
cur = db.cursor() 
cur.execute("SELECT common_name , genus , species  FROM table WHERE sequence LIKE 'MDPSSID%'")

1

solved Searching through database with python