์—ฌ๊ธฐ์„œ๋Š” ์ œํƒ€ ์œ„ํ‚ค์— ๋‚˜์˜จ ๋ฐฉ๋ฒ•๊ณผ ๋ณ„๋„๋กœ mysql ์ž์ฒด์—์„œ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ๋‹ค๋ฃฌ๋‹ค. ์ œํƒ€์œ„ํ‚ค ๋ฐฉ๋ฒ•์ด ์•ˆ ํ†ตํ•  ๊ฒฝ์šฐ ์‹œ๋„ํ•ด๋ณผ ๊ฒƒ.

1. mysqld.cnf ์—ด๊ธฐ

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

2. ์„ค์ • ๋ณ€๊ฒฝ

bind-address ๋‚ด์šฉ์„ ์ฐพ์•„ ์ˆ˜์ •ํ•ด์ค€๋‹ค.

bind-address = 127.0.0.1 โ†’ bind-address = 0.0.0.0

3. mysql ์žฌ์‹œ์ž‘

sudo service mysql restart