随笔分类 -  pg

摘要:https://blog.csdn.net/strawberry1019/category_9762904.html 阅读全文
posted @ 2021-10-08 15:38 beawh 阅读(10) 评论(0) 推荐(0) 编辑
摘要:该文件位于初始化安装的数据库目录下,例如:/data/postgresql/pgdata/pg_hba.conf [postgres@muze1 bin]$ cat /data/postgresql/pgdata/pg_hba.conf# TYPE DATABASE USER ADDRESS MET 阅读全文
posted @ 2021-06-09 10:46 beawh 阅读(269) 评论(0) 推荐(0) 编辑
摘要:源码下载地址:https://www.postgresql.org/ftp/source/ [root@muze1 data]# wget https://ftp.postgresql.org/pub/source/v13.2/postgresql-13.2.tar.gz-- 创建用户groupad 阅读全文
posted @ 2021-06-08 17:23 beawh 阅读(251) 评论(0) 推荐(0) 编辑
摘要:一、基础环境 1、操作系统:CentOS 7.3 2、PostgreSQL:10.3 3、主节点:192.168.0.101 从节点:192.168.0.102 二、部署主从 1、安装postgreSQL 主节点与从节点均安装postgreSQL. 2、配置主从 主节点(192.168.0.101) 阅读全文
posted @ 2020-12-23 21:00 beawh 阅读(732) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/nanshanjushi/p/11324607.html 阅读全文
posted @ 2020-11-17 13:05 beawh 阅读(160) 评论(0) 推荐(0) 编辑
摘要:./createuser --interactive iomsx;Shall the new role be a superuser? (y/n) nShall the new role be allowed to create databases? (y/n) nShall the new rol 阅读全文
posted @ 2020-06-21 17:17 beawh 阅读(648) 评论(0) 推荐(0) 编辑
摘要:列出docker容器列表:docker ps 进入到当前pgsql所在的容器: docker exec -it $dockerID /bin/bash 切换用户:su - postgres将pgsql的skylarxx 库的所有表列出来:./pgsql -p 15432 -d skylarxx -c 阅读全文
posted @ 2020-06-16 14:25 beawh 阅读(639) 评论(0) 推荐(0) 编辑
摘要:连接数据库, 默认的用户和数据库是postgres psql -U user -d dbname 切换数据库,相当于mysql的use dbname \c dbname 列举数据库,相当于mysql的show databases \l 列举表,相当于mysql的show tables \dt 查看表 阅读全文
posted @ 2019-09-27 16:57 beawh 阅读(4630) 评论(0) 推荐(0) 编辑
摘要:./postgres -i -D /opt/PostgresSQL/9.2/data FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied 直接删除tmp 下的隐藏文件 .s.PGSQL.5432.l 阅读全文
posted @ 2019-09-12 19:01 beawh 阅读(613) 评论(0) 推荐(1) 编辑
摘要:[root@weblogic opt]# groupadd postgresql[root@weblogic opt]# useradd -g postgresql postgres [root@weblogic opt]# passwd postgres [root@weblogic opt]# 阅读全文
posted @ 2019-09-06 17:12 beawh 阅读(562) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示