今天服务器数据库出现以下错误:
致命错误: database is not accepting commands to avoid wraparound data loss in database "postgres"
提示: Stop the postmaster and use a standalone backend to vacuum database "postgres".
查了相关资料:
http://www.kuqin.com/postgreSQL8.1_doc/app-postgres.html
找到了解决办法:
解决方式:
1,以postgres用户登录系统
su postgres
2,进入单用户模式
postgres -D /var/lib/pgsql/data demo(数据库)
3,维护
vaccum full
如果有多个数据库,重复2,3步骤即可。
本文介绍了如何解决PostgreSQL数据库中出现的致命错误:不接受命令以避免数据丢失。通过使用特定命令进入单用户模式并执行VACUUM FULL操作来解决问题。
262

被折叠的 条评论
为什么被折叠?



