网站首页 站内搜索

搜索结果

查询Tags标签: Postgres,共有 222条记录
  • 在CentOS 7上安装&配置PostgreSQL 12

    一、前言1、本文主要内容PostgreSQL 12 安装(yum) PostgreSQL 12 基础配置 PostgreSQL 12 远程访问配置 PostgreSQL 基础管理2、本文环境信息与适用范围环境信息软件版本CentOS 7.6 ReleasePostgreSQL 12.x 适用范围软件版本CentOS CentOS 7.xPostgreSQL 9.x-12.x 二、Pos…

    2022/3/7 19:15:10 人评论 次浏览
  • Postgres数据库用户密码有效期设置

    pg_user或pg_shadow中: 列valuntil值为infinity或空值表示用户密码永不过期;默认为空 修改用户密码过期时间:alter user user_name with valid until 2018-01-01 08:00:00; 修改用户密码永不过期:alter user user_name with valid until infinity; highgo=# select …

    2022/3/1 19:21:44 人评论 次浏览
  • postgresql role(角色)

    在PG中,角色与用户的概念比较模糊,可以认为带LOGIN属性的role就是用户. #创建role 带了login属性.就可以登录数据库. postgres=# create role role1; CREATE ROLE postgres=# \c - role1 FATAL: role "role1" is not permitted to log in Previous connection k…

    2022/3/1 19:21:44 人评论 次浏览
  • PostgreSQL分表,即对表格进行分区

    转载: https://www.cnblogs.com/binliubiao/p/15399595.html 参考: https://postgres.fun/categories/ 参考: http://www.postgres.cn/v2/news/viewone/1/524 参考 1、 [PostgreSQL11:分区表支持创建主键、外键、索引] https://postgres.fun/20180920155600.html (…

    2022/2/26 2:21:36 人评论 次浏览
  • 每次连接服务器postgre数据库都要执行的步骤

    在终端启动服务器 root@6f65f3f5d148 ~# pg_ctlcluster 13 main start查看数据库状态 root@6f65f3f5d148 ~# service postgresql status切换到数据库用户 root@6f65f3f5d148 ~# sudo su postgres打开数据库命令行postgres@6f65f3f5d148:/root$ psql连接模式 postgres=# \c…

    2022/2/25 19:24:52 人评论 次浏览
  • 云原生 PostgreSQL - CrunchyData PGO 教程:创建、连接、删除 Postgres 集群

    入门 作为安装的一部分,请确保您已完成以下操作:分叉 Postgres Operator 示例存储库并将其克隆到您的主机。https://github.com/CrunchyData/postgres-operator-examples/fork将 PGO 安装到 postgres-operator 命名空间。如果您位于 postgres-operator-examples 目录中,…

    2022/2/25 19:24:28 人评论 次浏览
  • 【 PG 入门系列 】PostgreSQL的体系结构(三)

    PostgreSQL的体系结构(三) 1. PG的体系结构1.1. Postmaster进程1.2. postgres进程1.3. 本地内存1.4. 数据库实例(INSTANCE)1.4.1. 共享内存1.4.2. 辅助进程 1.5. Database Cluster1.6. 查询验证 2. PG的数据目录结构3. PG的层级结构Postgresql 系列博文讲解(B站同步介…

    2022/2/20 19:35:36 人评论 次浏览
  • postgres自动备份数据库

    1,功能描述 ​ 直接在安装有postgres psql和pg_dump的linux服务器上,直接脚本即可一键备份数据库到新建的bak2022xxxxxdbname数据库,同时生成**.sql备份文件。 2,实现原理使用psql(创建新库、备份数据到新的库)、pg_dump(备份数据到**.sql文件)工具命令使用expect…

    2022/2/12 2:42:40 人评论 次浏览
  • PostgreSQL 14的SCRAM身份验证

    升级到PostgreSQL14之后,会遇到以下错误: FATAL: password authentication failed for a user FATAL: Connection to database failed: connection to server at “localhost” (::1), port 5432 failed: fe_sendauth: no password supplied 报这些错误的原因是,Postg…

    2022/2/11 19:16:47 人评论 次浏览
  • postgresql-14.2-源码编译安装

    一、postgresql-14.2-源码包下载链接 https://ftp.postgresql.org/pub/source/v14.2/postgresql-14.2.tar.gz 二、环境简介 名称值cpuIntel Core™ i7-7700HQ CPU @ 2.80GHz操作系统Red Hat Enterprise Linux Server release 7.9 (Maipo)pg数据目录/opt/pg14-2pg安装目录/…

    2022/2/11 19:14:31 人评论 次浏览
  • pg docker-compose.yml

    version: 3 services:postgres:image: postgres:11environment:- POSTGRES_USER=postgres- POSTGRES_PASSWORD=postgresports:- 5432:5432volumes:- ./data:/var/lib/postgresql/dataredis:image: redis:5ports:- 6379:6379

    2022/2/10 23:43:25 人评论 次浏览
  • Linux下离线安装postgresql并进行主从配置

    一、下载离线安装包 PostgreSQL: File Browser 我这里用的是9.6.10 二、下载gcc-c++和readline 阿里云开源镜像站资源目录三、安装在根路径下创建data目录,作为我们得工作目录 1,gcc-c++环境检测rpm -qa | grep gcc-c++2,gcc-c++环境安装将下载好的gcc-c++放到data目录…

    2022/2/9 19:28:18 人评论 次浏览
  • nestjs:win10安装postgresql14失败解决方案

    说明:本人第一次使用postgresql,去官网下载的14(最新版)Download PostgreSQL,然后就悲催了,按照网上各种法子安装都会出现:"Failed to load sql modules into the database cluster" 解决方案:放弃安装14了,我觉得是版本问题,换成旧版本10.19创建了本…

    2022/2/4 19:15:26 人评论 次浏览
  • 报错:psql: FATAL: role “postgres” does not exist

    原文链接:这里 0.前言 在docker里操作postgres数据库时遇到这个错误,大意是“postgres”这个角色不存在。1.解决办法 我们输入下面命令 psql -U onlinejudge 然后依次输入下面两行代码: create user postgres superuser; create user root superuser;然后输入 \q 退出即…

    2022/1/30 19:04:33 人评论 次浏览
  • postgresql提权

    (CVE-2019-9193) CVE-2019-9193:PostpreSQL 9.3-11.2 允许经过身份验证的superuser或者拥有pg_read_server_files权限的用户执行任意命令: drop table if exists cmd_exec; create table cmd_exec(cmd_output text); copy cmd_exec from program id; select * from cmd_e…

    2022/1/29 2:04:31 人评论 次浏览
扫一扫关注最新编程教程