바르고 뜨겁게

mysql - nodejs 연동 에러 본문

Database/mysql

mysql - nodejs 연동 에러

RightHot 2019. 9. 18. 23:02

Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client


1. 유저의 비밀번호를 바꾸거나 , 새로운 유저를 생성한다.

ALTER USER '[user]'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
-- or
CREATE USER '[user]'@'%' IDENTIFIED WITH mysql_native_password BY '[password]';
-- then FLUSH PRIVILEGES;


2. 권한을 준다

 grant all privileges on *.* to '[ID]'@'%' with grant option;


3. 서버 설정을 변경한다.
3-1. MySQL Installer 실행
3-2. MySQL Server Reconfigure

3-3. Legacy 로 변경




'Database > mysql' 카테고리의 다른 글

AWS Lightsail Mysql 외부 접속 방법  (0) 2020.06.04
AWS Mysql 로컬 타임 변경  (0) 2020.05.31
[AWS] Mysql DB Upload  (0) 2020.05.31
AWS - mysql 한글 깨짐 해결  (0) 2019.09.24
mysql 워크밴치로 비밀번호 변경  (0) 2019.01.31
Comments