Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker container 에서 local MySQL 접속하기 #166

Open
occidere opened this issue Oct 25, 2021 · 0 comments
Open

docker container 에서 local MySQL 접속하기 #166

occidere opened this issue Oct 25, 2021 · 0 comments
Assignees

Comments

@occidere
Copy link
Owner

occidere commented Oct 25, 2021

docker container 에서 local MySQL 접속하기

상황

  • docker 컨테이너에서 구동하는 애플리케이션에서 Local 의 MySQL 에 접속하고자 함
  • MySQL host 를 그냥 localhost 로 하면 connection refused 가 계속 발생

해결

  • host 를 localhost 대신 host.docker.internal 로 변경

참고

@occidere occidere self-assigned this Oct 25, 2021
@occidere occidere changed the title docker app 에서 local MySQL 접속하기 docker container 에서 local MySQL 접속하기 Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant