python mysql安装与使用
安装 sudo apt-get install python-mysqldb使用 (1)连接数据库 import MySQLdb conn = MySQLdb.connect(host=’localhost’, user=’your_mysql_user’, passwd=’user_pwd’ ,db=’db_name’, port=3306) curs = conn.cursor()
原创
2016-03-14 14:01:45 ·
526 阅读 ·
0 评论