【发布时间】:2011-06-30 11:43:54
【问题描述】:
我确定这已得到解答,但我似乎找不到答案。
我使用安装到 /usr/local/Cellar/postgresql 的 Homebrew (brew install postgresql) 安装了 postgresql。按照我这样做的说明后记:
If this is your first install, create a database with:
initdb /usr/local/var/postgres
据我了解,initdb 创建了一个新的数据库集群。因此,当我执行上述操作时,“postgres”是数据库名称和数据库本身,还是所有 postgresql 数据库都需要的所有必要位?
实际的数据库最终位于何处?我是 postgresql 的新手,正在寻找作为数据库的文件或二进制文件。 那么,数据库在哪里,当我创建一个新数据库时它会去哪里?
【问题讨论】:
标签: macos postgresql