1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 【0034】 PostgreSQL报错信息:The server must be started by the user that owns the data directory.

【0034】 PostgreSQL报错信息:The server must be started by the user that owns the data directory.

时间:2020-07-09 08:51:56

相关推荐

【0034】 PostgreSQL报错信息:The server must be started by the user that owns the data directory.

    pg_ctl程序命令启动PostgreSQL服务时候,报错提示:

    FATAL: data directory “/xxx/xxx” has wrong ownership

    HINT: The server must be started by the user that owns the data directory.

    我们在PostgreSQL教程系列中讲解过,PostgreSQL服务器启动时候会对PGDATA数据库族目录进行校验操作。若不存在,则报错;若目录存在,则会对该目录的属性(比如该目录的用户id等)进行逻辑判断操作,如下代码所示:

#if !defined(WIN32)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。