개발모음집

Could not create connection to database server. Attempted reconnect 3 times. Giving up. 본문

DB/RDBMS

Could not create connection to database server. Attempted reconnect 3 times. Giving up.

void 2020. 9. 4. 10:00

아이윈브이에 서버를 설치하고 맥에서 rdbms를 연결하려고 했다.

[08001] could not create connection to database server. attempted reconnect 3 times. giving up.

에러가 발생했다. 왜 안되는지 이해를 못했다. 

 

1. 외부접속이 되는 mysql 아이디를 만들어서 접속하려 했으나 실패
2. mysql config 파일에서 외부접속하도록 설정

 

그래도 안돼서 netstat -tlnp 를 통해 외부접속허용이 안되어있는걸 확인했다.

3306 포트 외부접속 허용하니 해결...
aws를 쓰다보니 간단한 곳에서도 문제가 생겼다.

출처 : https://winterj.me/iptables-Save/