Registry / database / mysql-server-5.7-lin-x64

mysql-server-5.7-lin-x64

JSON →
library1.0.0jsnpmunverified

Provides a self-contained MySQL Server 5.7 binary for Debian Linux (x86_64) that can be spawned as a child process from Node.js applications, primarily for testing or local development environments. Version 1.0.0 is the latest stable release. This package is designed to run inside Docker images based on `FROM node:10` (Debian 9) and avoids the need to install MySQL separately. Key differentiator: it bundles the MySQL server binary and provides a convenient JavaScript API to start/stop an instance with custom configuration, but only one instance may be spawned per process. Note that the package is a fork of an older OS X version and has not been updated since 2018, so it may have compatibility issues with newer Node.js versions or operating systems.

npm install mysql-server-5.7-lin-x64
INSTALL
IMPORT
SIG · MYSQL-SERVER-5.7-L
M
mysql-server-5.7-lin-x64
databasejavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

startMysql
var startMysql = require('mysql-server-5.7-lin-x64');
import startMysql from 'mysql-server-5.7-lin-x64';
This package only supports CommonJS require. ESM imports will fail.

Shows how to start a MySQL server instance with custom port and data directory, then stop it after 5 seconds.

const startMysql = require('mysql-server-5.7-lin-x64'); const mysqld = startMysql({ port: 3307, basedir: __dirname, datadir: __dirname + '/data' }, { reinitialize: false }); mysqld.stdout.on('data', (data) => { console.log('stdout:', data.toString()); }); mysqld.stderr.on('data', (data) => { console.error('stderr:', data.toString()); }); mysqld.on('close', (code) => { console.log('child process exited with code ' + code); }); setTimeout(() => { mysqld.stop(); console.log('Server stopped.'); }, 5000);
Debug
Known issues
breakingPackage only supports Node.js 10 on Debian 9. It may not work on newer Node.js versions or other Linux distributions.
fix
Use official MySQL Docker image or install MySQL natively for compatibility with modern environments.
affects: >=1.0.0
deprecatedThe package has not been updated since 2018 and the underlying MySQL 5.7 is reaching end of life. Consider using MySQL 8.0 or later.
fix
Migrate to a maintained MySQL server package or use Docker mysql:8.0 image.
affects: >=1.0.0
gotchaThe require path in the README example uses 'mysql-server-5.6-lin-x64' but the package is named 'mysql-server-5.7-lin-x64'. Using the wrong require will fail.
fix
Use correct require: require('mysql-server-5.7-lin-x64');
affects: >=1.0.0
gotchaOnly one MySQL instance can be spawned per Node.js process. Attempting to start a second instance will cause a conflict.
fix
Design your application to use a single server instance, or use separate processes for multiple instances.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'mysql-server-5.7-lin-x64'
The package is not installed, or the require path is incorrect.
fix
Run 'npm install mysql-server-5.7-lin-x64' and ensure the require path matches the package name exactly.
Error: listen EADDRINUSE :::3306
Another MySQL server or process is already using port 3306.
fix
Start the server with a different port: startMysql({ port: 3307 });
Error: spawn /path/to/node_modules/mysql-server-5.7-lin-x64/mysqld ENOENT
Binary not found due to missing native dependencies or incorrect platform (not Debian x86_64).
fix
Ensure you are running on Debian 9 with x86_64 architecture (e.g., Docker node:10 image).
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mysql-server-5.7-lin-x64 — npm install mysql-server-5.7-lin-x64 · libregistry