To resolve MySQL 8.0 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

·

1 min read

If you want to have a fix for it, install and use mysql2 (instead of mysql) and use:

npm un mysql && npm i mysql2

and

mysql = require('mysql2');