Search code examples
databasepostgresqldevelopment-environment

Where should I `initdb` on a first postgres install?


Setting up a development environment on a new machine, brew installed postgres. Now I need to initdb for the first time, which directory should i specify for this command?


Solution

  • It seems brew failed to create a database when installing postgres, the solution for me, as found here, was to run createdb then all was fine.