php - 如果已升级,请注意 : Need to manually update the pg_stats_reporter. ini

标签 php linux postgresql apache

当我最终完成 pg_stats_reporter 的安装和配置时

然后出现这个问题,我该如何解决

Error in pg_stats_reporter.ini
- Connection failure.(repository database = postgres)

Note: Need to manually update the pg_stats_reporter.ini if have upgraded.

我已经修改了 pg_stats_reporter.ini

host = localhost
port = 5432
dbname = postgres
username = postgres
password = postgres

重启数据库和httpd

但是没用。

此致。

最佳答案

它看到 pg_hba.conf 没有被正确配置

只需添加此信任消息

host    poprdres      poprdres        127.0.0.1/32            trust

到 pg_hbaa.conf 并且一切顺利。

关于php - 如果已升级,请注意 : Need to manually update the pg_stats_reporter. ini,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52326179/

相关文章:

sql - 在表格的每一行中找到最小值的优雅方法是什么?

php - supervisord 进程不会重新加载新的 php 代码

php - 使用 CodeIgniter ActiveRecord 连接三个表并过滤数据

python - 我如何使用 CD 和 LS 等 Linux 终端命令?

sql - 如何从一个表中获取相关表中不存在的记录?

postgresql - 如何在 Postgres 中美化 reltuples 输出

php - 是否有任何在线工具或可以简化此 MySQL SELECT 查询的人?

php - 在以下情况下如何从 MySQL 表中获取数据?

linux - 向远程服务器上的特定端口发送请求

linux - 已用内存(以字节为单位)。 Linux 堆 block 大小