Error Message : Host 'mcr-tf3c16x72pp' is not allowed to connect to this MySQL server
** 해결책 **
localhost로는 접속이 가능하고 IP로는 접속이 불가능한 이유는 접속가능한 IP로 등록이 되어 있지 않기 때문입니다.
select * from mysql.user
로 보시면 localhost는 보이나 IP는 보이지 않을것입니다.
mysql> grant all privileges on db명.* to 사용자계정@'IP주소'
identified by '비밀번호' with grant option;
mysql> grant reload,process on *.* to admin@localhost;
mysql> FLUSH PRIVILEGES;
위의 명령어로 접속가능한 IP로 등록해 주면됩니다.
select * from mysql.user
로 보시면 localhost는 보이나 IP는 보이지 않을것입니다.
mysql> grant all privileges on db명.* to 사용자계정@'IP주소'
identified by '비밀번호' with grant option;
mysql> grant reload,process on *.* to admin@localhost;
mysql> FLUSH PRIVILEGES;
위의 명령어로 접속가능한 IP로 등록해 주면됩니다.

댓글목록
등록된 댓글이 없습니다.