sshtunnel

A 1-post collection
7 年前

python 使用ssh隧道连接mysql

Shell/Python   sshtunnel  

环境 数据库只允许内网访问 服务器公网SSH访问 模块安装 pip install sshtunnel -i https://pypi.doubanio.com/simple/ pip install MySQL-python==1.2.5 -i https://pypi.doubanio.com/simple/ 方法 #!/usr/bin/python #_*_coding:utf-8_…