python3连接mysql,oracle,hive
一、python3连接mysql
import MySQLdb
localhost = "10.79.2.40"
user = "root"
pwd = "root"
database = "mytest"
TABLE_NAME = "mytable"
conn = MySQLdb.connect(localhost,user,pwd,database,charset='utf8')
cur...
原创
2018-04-19 11:52:01 ·
679 阅读 ·
0 评论