[Newbies] Postgresql 13 修改 数据库目录 错误
Tofloor
poster avatar
littlefox
deepin
2021-05-01 04:35
Author

错误:服务器必须由拥有data目录的用户启动

有什么办法解决

Reply Favorite View the author
All Replies
Feng Yu
deepin
2021-05-01 05:17
#1

把新目录的属主给postgres用户就行了。话说都玩postgresql了,基本的linux基础知识这么薄弱可不行啊

一个参考教程: https://www.digitalocean.com/community/tutorials/how-to-move-a-postgresql-data-directory-to-a-new-location-on-ubuntu-16-04

Reply View the author
littlefox
deepin
2021-05-01 06:43
#2
Feng Yu

把新目录的属主给postgres用户就行了。话说都玩postgresql了,基本的linux基础知识这么薄弱可不行啊

一个参考教程: https://www.digitalocean.com/community/tutorials/how-to-move-a-postgresql-data-directory-to-a-new-location-on-ubuntu-16-04

就是用postgres用户登录的

 

Reply View the author
littlefox
deepin
2021-05-01 06:53
#3

教程很有用 谢谢

Reply View the author