技术交流QQ群:①185473046   ②190706903   ③203744115   网站地图
登录

下次自动登录
现在位置 >首页 > PostgreSQL
0℃
2023年12月07日 Linux ⁄ 被围观 890次+
pgsql安装目录:/data/server/pgsql pgsql数据库存放目录:/data/server/pgsql/data 故障现象:因为磁盘爆满导致数据库目录下pg_wal里的文件丢失或损坏,数据库无法启动,报错。 报错信息: 2023-11-13 17:29:07.005 CST [152671] FATAL: the database system is starting up 2023-11-13 17:29:07.019 CST [152668] LOG: invalid primary checkpoint record 2023-11-13 17:29:07.019 CST [152668] PANIC: could not locate a valid checkpoint record 2023-11-13 17:29:07.070 CST [152667] LOG: startup process...
阅读全文
0℃
2022年06月28日 PostgreSQL ⁄ 被围观 6,562次+
说明: 1、PostgreSQL 使用 pg_dump 和 pg_dumpall 进行数据库的逻辑备份,使用 psql 和 pg_restore 导入数据; 2、pg_dump 可以选择一个数据库或者部分表进行备份,pg_dumpall是对整个数据库集群进行备份; 3、psql恢复SQL文本格式的数据备份,pg_restore恢复自定义格式的数据备份。 数据库用户:dbuser 数据库:testdb 数据表:new_test,tb_test,testdb 数据库安装路径:/usr/local/pgsql/bin/ mkdir -p /data/backup #创建备份文件存放目录 chown postgres.postgres -R /data/backup su - postgres 一、Post...
阅读全文
0℃
2022年06月26日 PostgreSQL ⁄ 被围观 3,271次+
操作系统:CentOS-7.6 主节点:192.168.21.100 从节点:192.168.21.101 PostgreSQL版本:postgresql-11.13.tar.gz 下载地址:https://ftp.postgresql.org/pub/source/v11.13/postgresql-11.13.tar.gz PostgreSQL数据库的主从同步是一种高可用解决方案,可以实现读写分离。 一、基础配置 在主从服务器上都进行操作 1、防火墙配置 CentOS 7.x 8.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1.1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.serv...
阅读全文
0℃
2022年06月04日 PostgreSQL ⁄ 被围观 3,126次+
PostgreSQL是一个功能非常强大的、源代码开放的关系型数据库,PostgreSQL被业界誉为“最先进的开源数据库”,主要面向企业复杂查询SQL的OLTP业务场景, 支持NoSQL数据类型(hstore/JSON/XML) 一、防火墙配置 CentOS 7.x 8.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防...
阅读全文


Copyright© 2011-2024 系统运维 All rights reserved
版权声明:本站所有文章均为作者原创内容,如需转载,请注明出处及原文链接
陕ICP备11001040号-3