티스토리 뷰

DataBase

MYSQL 에러들

LichKing 2016. 2. 15. 14:39
에러내용 : is not allowed to connect to this MYSQL server

로컬에서는 접속이 가능한데 다른 컴퓨터에서 접근할때 나는 에러. 권한이 없어서 발생하는 것이다.


해결법 : grant all privileges on *.* to root@'권한을 부여할 IP' identified by 'password' with grant option;


에러내용 : the last packet send successfully to the server was 0 milliseconds ago.

해결법(우분투 기준) : /etc/mysql 경로에 있는 my.cnf 실행


vi my.cnf


쭉쭉 내리다보면 bind-address 라는 항목이 있다. 해당 항목이 127.0.0.1로 되어있다면 해당 항목을 0.0.0.0 으로 수정

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함