A Node.js package that provides an isolated, portable MySQL server (or MariaDB) for development and testing. It bundles MySQL binaries and automatically manages starting and stopping a local instance without requiring a separate MySQL installation. The current version is 1.0.5, but the project appears to be minimally maintained with limited configuration options (port, credentials, etc.) and no active release cadence. Key differentiators: standalone execution without a system MySQL install; synchronous start (blocks the process). Consider alternatives like 'mysql2' or 'mysqld' for more robust development database solutions.
npm install mysql-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates starting the bundled MySQL server, connecting with mysql2, running a query, and stopping the server.
Run start() in a separate child process or use the package only for background testing.
If you need custom config, consider alternatives like 'mysql2' or a proper MySQL installation.
Evaluate whether this package meets long-term needs or switch to 'mysql2' or 'dockerode' with MySQL Docker container.
Be patient; subsequent starts are faster.
Run: npm install mysql-server
Run: sudo chmod +x /path/to/mysqld or install the package globally with npm (not recommended).
Ensure mysqlServer.start() was called and wait a few seconds for the server to initialize.
No dependency data recorded yet.