MySQL安装:
语法举例:
db = pymysql.connect(host='localhost',user='root',password='mysql',db='test',port=3306)
SQL Server安装:
db = pymssql.connect(server='localhost',user='root',password='mysql',database='test',autocommit=True)
Server=localhost;Database=master;Trusted_Connection=True;
python将.bak文件还原为数据库文件