Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
1. ๋ฌธ์ ์ํฉ
2. ์์ธ
3. ํด๊ฒฐ ๋ฐฉ๋ฒ
4. ๊ฒฐ๊ณผ
1. ๋ฌธ์ ์ํฉ
์ค๋๋ง์ ํฐ๋ฏธ๋์์ mysql์ ์ด๋ ค๊ณ ํ๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
2. ์์ธ
๊ทธ๋์ brew services list ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ค ์ํฉ์ธ์ง ์์๋ณด๊ณ ์ ํ์์ต๋๋ค.
postgresql์์ error๊ฐ ๋ฐ์ํ๋ ๊ฒ์ด์์ต๋๋ค.
postgres ์ค์ ํ์ผ๊ณผ mysql ์ค์ ํ์ผ์ด ๊ฒน์น๊ฒ ๋๋ฉด์ ๋ฐ์ํ ์ค๋ฅ์์ต๋๋ค.
3. ํด๊ฒฐ ๋ฐฉ๋ฒ
๋ค์ํ ๋ฐฉ๋ฒ์ ์๋ํด๋ณด๋ค๊ฐ ํด๊ฒฐ์ด ์ ๋์ง ์์์ ์ฐ์ ์ postgres๋ฅผ ์ ์ฐ๊ธฐ ๋๋ฌธ์ ์ญ์ ๋ฅผ ํด์คฌ๊ณ , ๊ด๋ จ ํ์ผ๋ค๋ ๋ค ์ญ์ ๋ฅผ ํด์คฌ์ต๋๋ค. postgres ์ญ์ ํ mysql์ ์คํํ๋๋ฐ๋ ์ ์ํ ์ ์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํด์ ์ง์ฐ๊ณ ์ฌ์ค์น๋ฅผ ์๋ํ์์ต๋๋ค. ๊ทธ๋๋ ์ ์๋๊ธธ๋ ๋จ์์๋ ๋ฐ์ดํฐ๊ฐ ์๋์ง ํ์ธํ์ต๋๋ค. ๊ทธ๋ฌ๋๋ ๊ฒฐ๊ตญ์๋ ๊ด๋ จ ํ์ผ 2๊ฐ๊ฐ ๋จ์์์ด์ ์ญ์ ํ๊ณ ์ฌ์ค์น๋ฅผ ํตํด ํด๊ฒฐํ์์ต๋๋ค.
$ sudo rm -rf /opt/homebrew/etc/my.cnf.d
$ sudo rm -rf /opt/homebrew/etc/my.cnf.default
4. ๊ฒฐ๊ณผ
์ ์์ด ์ ๋ฉ๋๋ค!
์ฐธ๊ณ ์ฌ์ดํธ
[MySQL] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ์๋ฌ ํด๊ฒฐ ์ฌ๋ก
m1 mac ๊ด๋ จ ํฌ์คํ ์ ๋ง์ด ์๋๋ผ๊ณ ์
velog.io
[Error] ๋งฅ๋ถ ๊ป๋ค ์ผฐ๋๋ postgreSQL ์คํ์ด ์ ๋๋๋ฐ์ (postgreSQL error 256)
ํ์์ ๊ฑฐ์ ๋์ง ์๊ณ sleep ์ํ๋ก ์ฌ์ฉํด์ค๋ m1 ๋งฅ๋ถ์ ์ค๋๋ง์ ๋๊ณ ํด์์ ์ทจํ๊ฒ ํด์ฃผ์๋ค๊ทธ๋ฆฌ๊ณ ๋ค์ ๋ .. ํ๋ ํ๋ก์ ํธ๋ฅผ ๊ณ์ํ๋ ค๊ณ postgreSQL์ ์คํ์ํค๋๋ฐ ์ค๋ฅ๋ฅผ ๋ฑ์ผ๋ฉฐ ์คํ ๋
velog.io
mac homebrew๋ก ์ค์นํ mysql์ ์ ์์ด ์ ๋ ๋
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ฉฐ homebrew๋ก ์ค์นํ mysql์ ์ ์์ด ์ ๋ ๋,
velog.io
๋ฌธ์ ๊ฐ ์์ผ๋ฉด ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์ !
ํผ๋๋ฐฑ์ ์ธ์ ๋ ํ์์ ๋๋ค <3