2019-03-01(问题说明)

    根据教程(教程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 文件简析

    2、postgres访问认证配置文件pg_hba.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"

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。