[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.plistexited with 5
ํด๊ฒฐ :
๊ตฌ๊ธ๋ง ํ๋๋ฐ ํด๊ฒฐ ๋ชปํ๋ค. ๋์ถฉ ์์ธ ํ์ ํด์
/opt/homebrew/var/ ํด๋ ํ์์ ๋ค์ด๊ฐ์ ์ด์ ์ ์ค์นํ๋ ๋ฒ์ ์ postgresql ํด๋๋ค๊ณผ postgresql.old ํด๋๋ฅผ ๋ค ์ญ์ ํด์ฃผ์๋ค.
์ดํ ์ฌ์ค์นํ๋ ์ ์คํ๋๋ค.
๋ฆฌ๋ง์ธ๋ :
Mac M1์ var ํด๋๊ฐ
/usr/bin์ด ์๋/opt/homebrew์ ์๋ค๋ ์ ์ ๊ธฐ์ต
ํ๊ณ
์ง์ง DB ์คํ์์ ์๋ฌ ๋จ๋ฉด ์์ ํ๊ธฐ๋ ์ ์ ๋๋ฌด ์ง๋น ์ง๋ค. ๋์ปค๋ก ์คํ์์ผ์ผ ํ๋ ์ง์งํ๊ฒ ๊ณ ๋ฏผํ๊ฒ ๋๋ค.
๊ทธ๋๋ ์์ ์๋ ์๋ชป ์ญ์ ํ๋๊ฑฐ ์๋๊น ์กฐ๋ง์กฐ๋งํ๋ฉฐ ์ณ๋ฐํด 10๋ฐํด ๋๋ ์ํฉ์ ์ง๊ธ์ ํ 3๋ฐํด๋ก ์ค์ธ ๊ฒ ๊ฐ๋ค. ๋๋ผ์ง๋ง ๋ฐฑ์๋์ ์ฌ๋ฅ์ ์๋ ๊ฒ ๊ฐ๋ค. ์ด์ฌํ ํ๊ธด ์ซ์ผ๋๊น ์ํด์ผ์ง ใ ใ
Ref
Last updated