MySQL | NodeJS

NodeJS MySQL 8.x Connection Error

Just upgrading from Sierra To Catalina and MySQL 5.x to MySQL 8.x. Suddenly the NodeJS project couldn’t connect to MySQL.MySQL 8.0 made a change on its default auth plugin. There are some ways to deal with this. Either reset the user password to use the old auth method or totally reset the MySQL default auth […]

Continue Reading...

MongoDB | Mongoose | NodeJS

Mongoose Not Creating Collection

If collection not created or the create() or save() callback is never triggered, most likely the issue is related to how the model created. From Mongoose doc: Note that no tanks will be created/removed until the connection your model uses is open. Every model has an associated connection. When you use mongoose.model(), your model will use […]

Continue Reading...