MySQL Node Issues
· 4 min read
Sometimes we encounter problems with MySQL version and the mysql
package for Node.js. To address this issue, we need to touch both Node.js projects and MySQL versions.
The Problem
Some of you are using the CodeOp projects/activities as guidance. Currently, those projects use the mysql
package, which does not support caching_sha2_password
, the default authentication plugin for MySQL 8.0 and above.
Additionally, MySQL 9 (the current default version) does not include the mysql_native_password
security plugin. This mismatch is causing errors during migrations and database interactions.