根据教程(教程tutorial2.0链接:支持中文的deepdive),执行命令:deepdive do articles时,出现以下错误:could not connect to database postgres :FATAL:Ident authentication failed for user "lala"。在deepdive中连不上PostgreSQL数据库。
deepdive中的db.url文件配置DeepDive application structure如下(url教程:):
而直接在PostgreSQL数据库中,用户lala可以登录到postgres数据库,如图所示。
PostgreSQL数据库的postgres.db文件夹中,有以下这些文件:
其中两个文件(pg_hba.conf和postgresql.conf)的配置信息如下:
网上搜索了一下问题(could not connect to database postgres :FATAL:Ident authentication failed for user "lala")的解决方案,跟着上面的教程修改,还是未解决,搜到的一些解决方案链接如下:
1、PostgreSQL pg_ident.conf 文件简析
3、psql: FATAL: Ident authentication failed for user "postgres"
4、psql: FATAL: Ident authentication failed for user "postgres"
5、psql: FATAL: Ident authentication failed for user "postgres"