Commit 3fafb1aa by 岳巧源

add fix py

parent f21e636e
Showing with 52 additions and 0 deletions
import pymysql
config_dev = {
"mysql": {
"host": "192.168.1.238",
"port": 3306,
"user": "liexin_data_distribution",
"password": "liexin_data_distribution#zsyM",
"database": "liexin_data_distribution"
},
"redis": {
"host": "192.168.1.235",
"port": 6379,
"password": "icDb29mLy2s"
}
}
config_prod = {
"mysql": {
"host": "bigdata2.ichunt.db",
"port": 3306,
"user": "DsbuUx",
"password": "sfj09JjsfpQx0",
"database": "liexin_data_distribution"
},
"redis": {
"host": "172.18.137.38",
"port": 6379,
"password": "icDb29mLy2s"
}
}
"""
为新增列 sku_sn字段赋值,当前为platform = 1的数据,sku_sn为 sku_id字段的字符串形式。
"""
# def main(conf: dict):
# host = conf["mysql"]["host"]
# port = conf["mysql"]["port"]
# user = conf["mysql"]["user"]
# password = conf["mysql"]["password"]
# database = conf["mysql"]["database"]
# db = pymysql.connect(host=host, port=port, user=user, password=password, database=database)
# cursor = db.cursor()
# sql = "select id, sku_id from lie_shop_push_sku_log where id >= %d order by id asc limit 5000"
# index = 1
# while (index <= 499813):
#
#
#
#
#
# if __name__ == '__main__':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment