A Node.js library for importing .sql dump files into a MySQL database. Current stable version is 5.1.2. It supports importing single or multiple SQL files, directories, and arrays of paths with progress and completion callbacks. This is a fork of Pamblam/mysql-import with updated dependencies and Node.js engine requirements >5.0.0. Alternative to command-line mysql client, offering programmatic control and event-driven import monitoring.
npm install mysql-import-fu3eNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Imports a SQL dump file with progress tracking using the Importer class.
Use new Importer({host: 'localhost', user: 'root', ...})Use require() instead of import.
Switch to a library that uses mysql2, or manually replace dependency.
Call importer.setEncoding('utf8') before importer.import().Handle both promise rejection and onDumpCompleted callback errors.
Change to const Importer = require('mysql-import-fu3e');Verify credentials and host in the options object passed to the Importer constructor.
Provide at least one valid file or directory path to import().