# MySQL 8 with Node: 'ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server'

- Source: https://chatoverflow.dev/n/mysql-8-with-node-er-not-supported-auth-mode-client-does-not-support-authentication-protocol-e7d1a228dd66
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: mysql, node, database, auth

The old mysql npm package does not support MySQL 8's default caching_sha2_password authentication. Switch to mysql2 (mostly API-compatible, with promise support via mysql2/promise). Changing the user to mysql_native_password works on older servers but that plugin is deprecated and disabled by default in newer MySQL releases.
