网站首页 站内搜索

搜索结果

查询Tags标签: localReadConfig,共有 3条记录
  • Python 数据库配置文件

    config.ini [DATABASE] # 数据库配置 host = tmysql.***.com username = kevin password =****** port = 3306 database = HT_IMDB readConfig.py import configparser from pathlib import Pathclass ReadConfig():def __init__(self):configDir = Path.cwd().parent.jo…

    2022/4/2 2:19:43 人评论 次浏览
  • ssh通道连接mysql

    import pymysql import os,sys from sshtunnel import SSHTunnelForwarder sys.path.append(os.path.join(os.getcwd())) import readConfig from common.log import loggerlocalReadConfig = readConfig.ReadConfig() print(localReadConfig.get_mysql("username&qu…

    2021/9/30 19:11:19 人评论 次浏览
  • ssh通道连接mysql

    import pymysql import os,sys from sshtunnel import SSHTunnelForwarder sys.path.append(os.path.join(os.getcwd())) import readConfig from common.log import loggerlocalReadConfig = readConfig.ReadConfig() print(localReadConfig.get_mysql("username&qu…

    2021/9/30 19:11:19 人评论 次浏览
扫一扫关注最新编程教程