/etc/mysql/mysql.conf.d/mysqld.cnf 에서 bind-address를 0.0.0.0로 수정해야된다. localhost 뿐만 아니라 모든 ip의 접속을 다 허가한다는 의미다.

참고 자료

https://github.com/Hyeon9mak/WIL/blob/main/reverse-proxy-was-mysql.md