IT分からんわ~_~;

IT色々お勉強中のブログ

postgresql

急にpostgresが繋がらなくなった

急にpostgresが繋がらなくなった psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? postmaster.pidを消したら何か動くようなった /usr…

新規railsアプリ作成 postgres編

hogehogeアプリを作成 mkdir hogehoge cd hogehoge echo 2.2.4 > .ruby-version ruby -v rbenv local 2.2.4 ll -a rbenv versions gem install bundler rbenv gemset list rbenv gemset create 2.2.4 hoge echo >.rbenv-gemsets hoge ll -a bundle init vim …

postgres

admins-MacBook-Pro% initdb /usr/local/var/postgres -E utf8 The files belonging to this database system will be owned by user "hoge". This user must also own the server process. The database cluster will be initialized with locale "ja_JP.UT…