[postgrsql] PostgreSQL-tmp.s.PGSQL.5432-failed
문제발생
- 
    
brew services start postgresql로 서비스 실행시ps-ef | grep sql로 서비스 확인해보면 프로세스가 뜨지 않았다 - 
    
psql 명령어로 실행시
PostgreSQL-tmp.s.PGSQL.5432-failed에러가 발생했다. 
해결
- 서비스 종료 후 관련내용삭제
 
brew services stop postgresql
brew uninstall --force postgresql
rm -rf /usr/local/var/postgresql
rm -rf .psql_history .psqlrc .psql.local .pgpass .psqlrc.local
brew cleanup
- 
    
brew install postgresql@13버전명을 붙여서 설치 - 
    
brew link postgresql@13brew링크 - 
    
정상작동!
 
추가
- 
    
psql명령어 실행 시database "jhy" does not exist에러 발생하면psql -d template1 명령어를 실행하여 createdb 
를 실행한다
          이 문서는
            jhy156456에 의해 작성되었습니다.
          
          마지막 수정 날짜:2022-12-05 19:16:42