- 博客(3)
- 收藏
- 关注
原创 Python连接各个数据库
1、python连接oracleimport cx_Oracleconn = cx_Oracle.connect('jwdd', '123456', '192.168.8.253/jwdd', encoding='utf-8')if conn: print('orecle connect success')使用连接池cx_Oracle中提供SessionPool()创建连接池,连接池一般是在应用程序初始化时创建。相比通过connect()方法创建单个数据库连接,使用SessionPool
2022-05-13 13:39:54
1573
1
原创 ubuntu下postgres10主从同步
ubuntu下的postgres12的主从同步:https://blog.youkuaiyun.com/the_sun_go_down/article/details/109613719postgres10的安装和12差不多,但是有细微差别postgresql 10主库:192.168.1.4从库:192.168.1.51、首先在所有服务器上安装好postgresql数据库(最好保证版本一直)安装命令为:sudo apt-get install postgresql (默认安装最新版.
2020-11-11 13:56:10
204
原创 ubuntu18.04下的postgres12主从同步
postgresql 12主库:192.168.1.4从库:192.168.1.51、首先在所有服务器上安装好postgresql数据库(最好保证版本一直)安装命令为:sudo apt-get install postgresql (默认安装最新版)(ubuntu下目前最新为10,我们要安装的是12,所以不使用这个)安装12的命令如下(postgres官网有教程):# Create the file repository configuration:sudo sh -.
2020-11-11 13:39:46
743
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人