MySQL이 설치되어 있는 곳에 시작으로 들어가보면
MySQL Command Line Client 라는 것이 있다.
그것을 실행하고
다른 서버에서 들어올 수 있게 권한을 부여한다.

mysql> grant all privileges on dbname.* to userid@'%' identified by 'password';
Query OK, 0 rows affected (0.01 sec)

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

flush를 하지 않으면 재부팅 후 권한이 모두 사라지니 꼭 하자...


======================================
이렇게 해도
나중에 보니 alter table은 권한이 빠져있다.

grant alter on dbname.* to userid@'%' identified by 'password';
로 alter 권한은 따로 또 줘야한다.

+ Recent posts