随笔分类 - pg
摘要:https://blog.csdn.net/strawberry1019/category_9762904.html
阅读全文
摘要:该文件位于初始化安装的数据库目录下,例如:/data/postgresql/pgdata/pg_hba.conf [postgres@muze1 bin]$ cat /data/postgresql/pgdata/pg_hba.conf# TYPE DATABASE USER ADDRESS MET
阅读全文
摘要:源码下载地址:https://www.postgresql.org/ftp/source/ [root@muze1 data]# wget https://ftp.postgresql.org/pub/source/v13.2/postgresql-13.2.tar.gz-- 创建用户groupad
阅读全文
摘要:一、基础环境 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)
阅读全文
摘要:https://www.cnblogs.com/nanshanjushi/p/11324607.html
阅读全文
摘要:./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
阅读全文
摘要:列出docker容器列表:docker ps 进入到当前pgsql所在的容器: docker exec -it $dockerID /bin/bash 切换用户:su - postgres将pgsql的skylarxx 库的所有表列出来:./pgsql -p 15432 -d skylarxx -c
阅读全文
摘要:连接数据库, 默认的用户和数据库是postgres psql -U user -d dbname 切换数据库,相当于mysql的use dbname \c dbname 列举数据库,相当于mysql的show databases \l 列举表,相当于mysql的show tables \dt 查看表
阅读全文
摘要:./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
阅读全文
摘要:[root@weblogic opt]# groupadd postgresql[root@weblogic opt]# useradd -g postgresql postgres [root@weblogic opt]# passwd postgres [root@weblogic opt]#
阅读全文