에러 코드
Re-enter new password:
... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server.
Plaase consider using ALTER USER instead if you want to change authentication parameters.
에러 상황
- AWS EC2에 설치한 MySQL을 연결하려고 할 때 에러 발생
Re-enter new password:
... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server.
Plaase consider using ALTER USER instead if you want to change authentication parameters.
해결 방법
- AWS EC2에서 MySQL 설치 후 비밀번호를 설정하려면 root 권한으로 해야하는데, 하지 않아서 에러 발생
- AWS EC2에서 root의 비밀번호 설정하기
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by '새로운비밀번호';
- 비밀번호 설정 후 정상적으로 MySQL에 접근 가능