我使用Ubuntu12.04,postgresql 9,1 postgis 1.5。我想改变数据库的位置。我使用指令http://www.whiteboardcoder.com/2012/04/change-postgres-datadirectory-folder.html,唯一的区别是我没有使用postgres帐户来更改文件/etc/postgresql/9.1/main/postgresql.conf
当我转储postgresql时,我有错误:
Error: pid file is invalid
错误跟踪器https://tickets.opscode.com/browse/COOK-3618中存在此错误。
如何更改数据库位置?
发布于 2013-11-23 11:28:16
在本例中使用适当的工具- pg_createcluster
。仔细看看它的--datadir=
选项。
https://serverfault.com/questions/556946
复制相似问题