#6196·knex

Use mysql2/promise to prevent problems where MySQL stracktraces are lost

Author: aaronabfCreated Apr 7, 2025Updated Aug 27, 2026
LabelsNG_bug

As mentioned in https://github.com/sidorares/node-mysql2/issues/1067, this appears to be an issue with how Knex integreates with msyql2


EDIT (by @mercmobily ): a possible path would be:

  • Auto-Enable asyncStackTraces for MySQL2 in Development, write it in the DOCs
  • Migrate to mysql2/promise under a flag OR with a different dialect (whichever is sanest)