import MySQLdb

try:
   connection = MySQLdb.connect(user="root",passwd="admin",host="localhost",db="test")
   print "Could  connect to MySQL server."
except:
   print "Could not connect to MySQL server."
   exit( 0 )


8f23b1328f3afcae68449d29dd143c1525d69198
import MySQLdb

try:
   connection = MySQLdb.connect(user="root",passwd="admin",host="localhost",db="test")
   print "Could  connect to MySQL server."
except:
   print "Could not connect to MySQL server."
   exit( 0 )

