Skip to content

fix(deps): add missing mysql2 package for MySQL database support#1152

Open
eduardomozart wants to merge 2 commits intognmyt:mainfrom
eduardomozart:patch-1
Open

fix(deps): add missing mysql2 package for MySQL database support#1152
eduardomozart wants to merge 2 commits intognmyt:mainfrom
eduardomozart:patch-1

Conversation

@eduardomozart
Copy link
Copy Markdown
Contributor

@eduardomozart eduardomozart commented Feb 20, 2026

📋 Description

The application natively supports MySQL as an alternative database backend via Sequelize (configured in server/utils/database.js using DB_TYPE=mysql). However, the required underlying MySQL dialect driver (mysql2) was missing from the package.json dependencies.

If a user configures their environment to use MySQL instead of the default SQLite, the Node.js server crashes on startup with the following error thrown by Sequelize:

Error: Please install mysql2 package manually
    at ConnectionManager._loadDialectModule (/.../node_modules/sequelize/lib/dialects/abstract/connection-manager.js:55:15)
    at new ConnectionManager (/.../node_modules/sequelize/lib/dialects/mysql/connection-manager.js:30:21)

This PR adds "mysql2": "^3.17.4" to the primary package.json dependencies and updates the yarn.lock file accordingly. This ensures the MySQL driver is present out-of-the-box for any environment that configures DB_TYPE=mysql, preventing instant runtime crashes.

🚀 Changes made to ...

  • 🔧 Server
  • 🖥️ Client
  • 📚 Documentation
  • 🔄 Other: ___

✅ Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have looked for similar pull requests in the repository and found none
  • This pull request does not contain translations (translations are managed through Crowdin)

🔗 Related Issues

Closes #1098

Added new dependencies including aws-ssl-profiles, denque, generate-function, iconv-lite, long, lru.min, mysql2, named-placeholders, sql-escaper, and updated their versions.
@eduardomozart eduardomozart changed the title Patch 1 fix(deps): add missing mysql2 package for MySQL database support Feb 20, 2026
@sonarqubecloud
Copy link
Copy Markdown

@eduardomozart eduardomozart marked this pull request as draft February 20, 2026 16:43
@eduardomozart eduardomozart marked this pull request as ready for review February 20, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Nexterm fails to start with MySQL DB

1 participant