SSamTure.net

워드프레스

MySQL 외부접속권한 계정 추가[우분투기준]

mysql> grant all privileges on *.* to ‘아이디’@’%’ identified by ‘비밀번호’ with grant option;
Query OK, 0 rows affected (0.08 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.05 sec)

계정을 생성한 후에

/etc/mysql/my.cnf에서

bind-address       = 127.0.0.1 부분을 주석처리 한후

mysql를 재시작 한다.

Leave a Reply

Your email address will not be published. Required fields are marked *