Database
[MariaDB] Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MariaDB server
애플자라
2016. 3. 21. 10:18
반응형
MariaDB Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MariaDB server
개발서버에 MariaDB 설치 후 로컬피시에서 원격으로 접속시
SQL 오류 (1130) #0 구문: Host '192.168.110.108' is not allowed to connect to this MariaDB server
라는 경고창이 나타났다.
보안 때문인지 권한설정에 IP를 막는 기능이 존재한다.
나 같은경우는 root였으므로
GRANT ALL PRIVILEGES ON *.* TO <username>@'%' IDENTIFIED BY <password>;
새로 계정을 만들어서 사용하여도 된다.
CREATE USER <username>@'%' IDENTIFIED BY <password>;
GRANT ALL PRIVILEGES ON *.* TO <username>@'%' WITH GRANT OPTION;
반응형