python mysql 1045 OperationalError: 1045, "Access denied for user root@'localhost'
Python代码:
# ^_^ coding: utf-8 ^_^
import MySQLdb
#打开数据库连接
db = MySQLdb.connect("localhost","root","zhang123","stucou")
cursor = db.cursor()
cursor.execute("SELECT VERSION()")
data = cursor.fe
原创
2017-02-27 10:50:42 ·
2458 阅读 ·
0 评论