미해결
Node.js 웹개발로 알아보는 백엔드 자바스크립트의 이해
nodejs와 mysql 연동 에러
Connection.connect(); 를 추가한 후 저장하면
다음과 같은 에러가 뜹니다.
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
해결책을 검색해 다음을 입력해보니,
use mysql;
update user set authentication_string=password(''), plugin='mysql_native_password' where user='root';
FLUSH PRIVILEGES;
다음과 같은 에러가 자꾸 나타나면서 해결을 못하고 있습니다.:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(''), plugin='mysql_native_password' where user='root'' at line 1
어떻게 하면 mysql 연동 에러를 해결할 수 있을까요? 도움주시면 정말 감사하겠습니다. ㅜㅜ