Cypress MySQL Plugin

JSON →
library 2.0.0 ·javascript
verified Jun 5, 2026

A Cypress plugin that adds MySQL database commands (cy.query()) to Cypress e2e tests, allowing direct SQL execution against a MySQL database. Current stable version is 2.0.0. The plugin requires Cypress >=15 and provides both JavaScript and TypeScript support. It wraps the popular mysql2 library internally to handle connections and queries. Key differentiator: it is one of the few actively maintained Cypress database plugins that works with the modern Cypress configuration (cypress.config.js/ts) and supports parameterized queries. However, usage declined due to Cypress native database plugin APIs and alternative approaches like cy.task for database access.