使用Python获取Mysql数据
#!.../usr/bin/python
-- coding: UTF-8 --
pip install MySQL-python
import MySQLdb, os
try:
conn = MySQLdb.connect...(host='172.17.42.1', user='数据库访问用户', passwd='数据库访问密码', db='数据库名', port=3306)
cur = conn.cursor()
cur.execute...exist: ', id, name, path, flashpath
cur.close()
conn.close()
except MySQLdb.Error,e:
print "Mysql