随笔分类 -  postgresql

摘要:PG配置文件路径 /etc/postgresql/9.3/main/postgresql.conf 首先如何查看最大连接数 This SQL will help you select max_conn,used,res_for_super,max_conn used res_for_super re 阅读全文
posted @ 2018-12-01 21:58 LisPythoniC 阅读(3020) 评论(0) 推荐(1)
摘要:https://www.postgresql.org/message id/1185863074.10580.91.camel%40linda.lfix.co.uk On Tue, 2007 07 31 at 09:22 +0800, Matt Arnilo S. Baluyos (Mailing 阅读全文
posted @ 2017-05-29 11:03 LisPythoniC 阅读(472) 评论(0) 推荐(0)
摘要:假设名为dbname数据库需要从A服务器拷贝到B服务器 接收服务器B postgres用户 需先重置B服务器postgres系统用户的密码,使之与数据库用户postgres一致: 如果不知道数据库用户postgres的密码, 在psql客户端使用命令 重置. 创建数据库 B服务器需要先存在名为dbn 阅读全文
posted @ 2017-04-09 23:18 LisPythoniC 阅读(1861) 评论(0) 推荐(0)
摘要:一. postgresql 数据库 安装 进入psql客户端 创建数据库,修改默认用户密码 参考:http://www.cnblogs.com/zhangpengshou/p/5464610.html 跨服务器复制数据库 参考:http://www.cnblogs.com/xiangnan/p/66 阅读全文
posted @ 2017-04-09 21:17 LisPythoniC 阅读(831) 评论(0) 推荐(0)
摘要:总结 mysql依靠反斜杠\转义, postgresql 依靠单引号转义 mysql 客户端 postgresql客户端 阅读全文
posted @ 2017-03-05 19:48 LisPythoniC 阅读(2027) 评论(0) 推荐(0)
摘要:PostgreSQL数据库忘记密码的解决方案 阅读全文
posted @ 2017-03-05 19:37 LisPythoniC 阅读(895) 评论(0) 推荐(0)
摘要:chown postgres /etc/ssl/private/ssl cert snakeoil.key chgrp postgres /etc/ssl/private/ssl cert snakeoil.key chmod 740 /etc/ssl/private/ssl cert snakeo 阅读全文
posted @ 2017-02-07 15:48 LisPythoniC 阅读(491) 评论(0) 推荐(0)
摘要:psql create database jasygl encoding='UTF8' TEMPLATE = template0; 命令行 备份 pg_dump dabase_name back.sql; 恢复 psql dabase_name 阅读全文
posted @ 2017-02-04 17:15 LisPythoniC 阅读(366) 评论(0) 推荐(0)
摘要:安装pg创建数据库xxx设置用户密码111111 apt get install postgresql su postgres psql create database xxx; alter user postgres with password '111111'; \c xxx; \d \q ex 阅读全文
posted @ 2017-02-03 22:02 LisPythoniC 阅读(261) 评论(0) 推荐(0)
摘要:su postgres psql \connect database_name; \d table_name 阅读全文
posted @ 2016-09-09 00:02 LisPythoniC 阅读(1918) 评论(0) 推荐(0)
摘要:`ALTER TABLE jiangan_config ADD COLUMN article text NOT NULL DEFAULT '';` 查看表定义: 阅读全文
posted @ 2016-02-29 17:59 LisPythoniC 阅读(39346) 评论(0) 推荐(2)