database - postgresql - start on mac - `pg_ctl` not working -
i want use pre-installed postgresql on local machine (mac os 10.7.5), when run which psql
find (in /usr/bin/psql
), running
pg_ctl -d /usr/bin/psql -l /usr/bin/psql/server.log start
results in:
-bash: pg_ctl: command not found
how can start/use postgresql database? need install (with homebrew) or can use pre-installed 1 on mac? tried using initdb
command (initdb /usr/bin/psql -e utf8
) , go tthe same message: -bash: initdb: command not found
.
also, psql
same postgres
? (i tried which postgres
, got nothing)
update: i'm using psql
commands in command line, getting there following message (for psql -l
, psql -a
instance):
psql: not connect server: no such file or directory server running locally , accepting connections on unix domain socket "/var/pgsql_socket/.s.pgsql.5432"?
os x ships command line client (for interacting postgres databases) not server.
you need install server.
check the postgres site or grab postgres.app
Comments
Post a Comment