ERROR 4102 (HY000): SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters.

 

리눅스에 mysql 연동을 다하고 mysql의 root 계정에 접속하려고하니 발생한 오류

생각해보면 root 계정의 비밀번호를 만들지 않았던거 같아서  발생한 오류인거 같다.

 

alter user 'root'@'localhost' identified with mysql_native_password by '비밀번호'; 

또는

 set password for root@'localhost' = PASSWORD('비밀번호');

 

 flush privileges ;

alter 명령어로 비밀번호를 재생성해주면 성공~!

복사했습니다!