Closed eneko closed 3 years ago
This is because the MySQL client library doesn't seem to support MySQL 8.0 yet.
$ grep mysql package.json
"mysql": "^2.15.0",
They have an open issue for this: https://github.com/mysqljs/mysql/issues/2002
A solution may be to move to the official Node.js connector for MySQL: https://dev.mysql.com/doc/dev/connector-nodejs/8.0/ but I don't know how hard that is and if that's the right kind of connector.
Looks like falcon uses sequelize
, which uses mysql
instead of the official MySQL Connector/node.js
So looks like there are two possible solutions:
mysql_native_password
(easy)
1.2. Add support for caching_sha2
authentication@mysqlx/xdevapi
), re-using some/most of the mysql
dialect.
Seems like Falcon does not support new MySQL 8.0 authentication format: