요세미티 업그레이드 이후 내 postgresql 데이터베이스를 레일즈 앱에서 실행하려고 시도하고 있습니다. 나는 결코 지금 업그레이드하지 않았 으면 좋겠다. 나는 그물을 검색했습니다. 그리고이 같은 문제에 관해서 stackoverflow에 관련된 질문이 있습니다.요세미티 설치 후 여전히 PostgreSQL이 작동하지 않습니다.
`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)
내 명령 줄에서 같은 오류를 얻고있다.
No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
내 웹 브라우저에서 PG :: ConnectionBad 오류가 발생합니다. @Donovan이 요세미티가 제거한 세 가지 누락 된 디렉터리 pg_tblspc,pg_twophase,pg_stat_tmp
을 추가하여이 문제를 해결했다고 명시된 해결책을 수행했습니다. 모든 올바른 명령 줄 작업을 실행했지만 여전히 동일한 오류 및 운이 나타납니다. 이것은 내 database.yml 파일도 비슷하게 보입니다.
# PostgreSQL. Versions 8.2 and up are supported.
#
# Install the pg driver:
# gem install pg
# On Mac OS X with macports:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem 'pg'
#
development:
adapter: postgresql
encoding: unicode
database: task_manager_development
pool: 5
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
# host: localhost
# port: 5432
# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# The server defaults to notice.
#min_messages: warning
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: postgresql
encoding: unicode
database: task_manager_test
pool: 5
production:
adapter: postgresql
encoding: unicode
database: task_manager_production
pool: 5
로컬 호스트와 포트 5432의 주석 처리를 취소하고 여전히 운이 없다. 정말 도움이 필요해. 기본적으로 내가 읽은 다른 모든 것들은 여러 디렉토리를 추가하고 postgresql을 재시작하면 문제가 해결 될 것이라고 말하지만 그것은 나에게 도움이되지 못했다. 나는 정확하게 무언가를하거나 무언가를 놓쳐서는 안된다. 나는 homebrew와 ROR을 다시 설치하는 것을 고려하고 있습니다.하지만 ROR 응용 프로그램에서 모든 데이터를 잃을 수도 있습니다. 어떤 도움이 좋을지 !!
당신이 소스에서 설치하는 생각 해 봤나 포스트 그레스를 다시 시작? (홈 디렉토리 아래에 설치하면 간단 해집니다 :'./configure --prefix =/Users/your_user/opt; make;'make install') 업그레이드를 중단하고 있습니다 ... –
레일즈 앱의 소스 또는 디렉토리에서 postgresql을 다시 시작한다는 의미입니까? – bigREDcode
언급 된 다양한 파일 및 디렉토리에서 사용 권한/소유권을 확인할 수도 있습니다. –