MacにはもともとPostgreSQLが入っているっぽい。サーバは入ってないのかな。でも、psqlコマンドはある。 それは、置いておいて、brewでPostgreSQLをインストールしてみた。 $ brew install postgresまぁ、こんだけ。 次にDatabaseの初期化 $ initdb /usr/local/var/postgresんで、サーバの起動 $ pg_ctl start -D /usr/local/var/postgresそして、psqlで接続しようとすると以下のエラーになった。 $ psql psql: could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/var