简体   繁体   中英

How to change postgresql database location that installed on macOS via homebrew

I have postgresql database that is installed on my macOS system drive via homebrew. The system drive is not so big and database is becoming bigger and bigger. I would like to move it to my big data drive if possible. I've found a manual for Ubuntu but it seems it does not fit my case. Because it says that postgresql.conf located in other directory than database itself. But homebrew's DB located at /usr/local/var/postgres with postgresql.conf in it. So I guess I can't just move /usr/local/var/postgres directory to another place because postgresql.conf will be inaccessible.

您可以使用ln从外部驱动器映射到目录中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM