mysql 원격 접속 설정

 

1. mysql 에 접속할 계정 설정 (user 테이블에 host 를 %으로 설정)

flush privileges;

2. iptables

iptables -A INPUT -p tcp --dport 3306 -j DROP

3. mysql 설정 (my.conf)

]# vi /etc/mysql/my.cnf
...
bind-address        = 127.0.0.1 를 주석처리 또는 0.0.0.0
...

1, 2은 기존에 알고 있었는데..
3번 내용은 처음 알았음.

 

This entry was posted in Database and tagged , , , , . Bookmark the permalink.

댓글 남기기