fishpoint.tistory.com/1406

 

에러해결 : Host 'HOST이름' is not allowed to connect to this MySQL server

개발중에 Host '192.168.1.242' is not allowed to connect to this MySQL server 발생할경우 해결책 DB 접근 권한이 없기 때문에 localhost로는 접근이 가능하지만 다른 ip로 접근했을때, 즉 라즈베리 파이 화면..

fishpoint.tistory.com

이사 하게 되면서 db가 조작이 안되서 ip주소 바뀐거 확인하고 코드를 바꿔줬지만 되지 않았습니다. 

...is not allowed to connect to this MySQL server

디버킹하면서 체크중에 위의 내용을 검색 결과 

현재 ip주소를 sql에서 접근해서 조작이 가능하도록 grant를 해줘야합니다.  

grant all privileges on *.* to root@아이피주소 identified by '비밀번호' with grant option;

코드에서 ip를 못찾아서 조금 시간을 뺏겼습니다. 권한부여를 미리 sql에서 명령어로 입력해줘여합니다. 

+ Recent posts