[Postgresql] Error: Failure while executing

λ°°κ²½ :

  • Postgresql@14 μ‹€ν–‰ν•˜λŠ”λ° μ—λŸ¬ λ°œμƒ

μ—λŸ¬ λ©”μ‹œμ§€ :

psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?

원인 :

  • error 256 {λ‚΄ 컴퓨터 이름}~/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plus

  • Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/{λ‚΄ 컴퓨터 이름}/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist exited with 5

ν•΄κ²° :

  • ꡬ글링 ν–ˆλŠ”λ° ν•΄κ²° λͺ»ν–ˆλ‹€. λŒ€μΆ© 원인 νŒŒμ•…ν•΄μ„œ

  • /opt/homebrew/var/ 폴더 ν•˜μœ„μ— λ“€μ–΄κ°€μ„œ 이전에 μ„€μΉ˜ν–ˆλ˜ λ²„μ „μ˜ postgresql 폴더듀과 postgresql.old 폴더λ₯Ό λ‹€ μ‚­μ œν•΄μ£Όμ—ˆλ‹€.

  • 이후 μž¬μ„€μΉ˜ν•˜λ‹ˆ 잘 싀행됐닀.

λ¦¬λ§ˆμΈλ“œ :

  • Mac M1은 var 폴더가 /usr/bin이 μ•„λ‹Œ /opt/homebrew에 μžˆλ‹€λŠ” 점을 κΈ°μ–΅

회고

  • μ§„μ§œ DB μ‹€ν–‰μ—μ„œ μ—λŸ¬ 뜨면 μ‹œμž‘ ν•˜κΈ°λ„ 전에 λ„ˆλ¬΄ μ§„λΉ μ§„λ‹€. λ„μ»€λ‘œ μ‹€ν–‰μ‹œμΌœμ•Ό ν•˜λ‚˜ μ§„μ§€ν•˜κ²Œ κ³ λ―Όν•˜κ²Œ λœλ‹€.

  • κ·Έλž˜λ„ μ˜ˆμ „μ—λŠ” 잘λͺ» μ‚­μ œ ν•˜λŠ”κ±° μ•„λ‹κΉŒ μ‘°λ§ˆμ‘°λ§ˆν•˜λ©° 쳇바퀴 10바퀴 돌던 상황을 μ§€κΈˆμ€ ν•œ 3λ°”ν€΄λ‘œ 쀄인 것 κ°™λ‹€. λŠλΌμ§€λ§Œ λ°±μ—”λ“œμ— 재λŠ₯은 μ—†λŠ” 것 κ°™λ‹€. μ—΄μ‹¬νžˆ ν•˜κΈ΄ μ‹«μœΌλ‹ˆκΉŒ μž˜ν•΄μ•Όμ§€ γ…‹γ…‹

Ref

Last updated