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
도커에 있는 mysql이랑 스프링부트 프로젝트 연동 (도커 네트워크 학습하기) #4
Projects
Comments
도커에 올린 mysql을 사용하려고하는데 issue-tracker 프로젝트에서 디비 연동이 안된다.. 도커 컨테이너에서 mysql 설정파일에 bind-address도 설정했고 접속하는 유저의 비밀번호, IP, 권한 설정까지 다 해줬다. 스프링부트 프로젝트의 설정에서도 도커의 ip로 설정하고 issue_trakcer 데이터베이스도 생성해줬는데 왜 안되는건지 모르겠다. |
위의 글 보고 다시 처음부터 해보자. |
스프링 부트 프로젝트에서 설정파일에 db 연결 url을 도커 컨테이너의 ip가 아닌 localhost로 설정하니 연동이 잘 되었고, 컨테이너의 mysql을 접속해보니 테이블도 잘 생성되어있다. 로컬에 도커를 띄우는 것이니깐 localhost로 해야한다. |
kimnayeon0108
changed the title
도커에 있는 mysql이랑 스프링부트 프로젝트 연동
도커에 있는 mysql이랑 스프링부트 프로젝트 연동 (도커 네트워크 학습하기)
Jul 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: