* root의 계정을 외부접속 가능하게 바꾸기

mysql> grant all privileges on *.* to ‘root’@'%’ identified by ‘root의 패스워드’;

mysql> flush privileges;

 

root 계정의 host필드에 %가 등록되어있는지 확인

mysql> select host, user, password from user; (이건 해도되고 안해도 되고)



 
%기호 : 어디서든 접속 가능.

 

728x90
반응형
LIST
 Illegal operation on empty result set.
Unknown column 'chkpasswd' in 'field list'


컬럼명 중 'chkpasswd'라는 필드가 없다는 mysql 명렁어 에러!
디비 column과 sql문에서의 접근하는 변수명이 같은지 확인해보기!

 

 

728x90
반응형
LIST

+ Recent posts

728x90
LIST