Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Create a backup from MySQL
npm install mysqldump
Example
var mysqlDump = require('mysqldump');
mysqlDump({
host: 'localhost',
user: 'root',
password: '',
database: 'test',
dest:'./data.sql' // destination file
},function(err){
// create data.sql file;
})
Full Options Example :
var mysqlDump = require('mysqldump');
mysqlDump({
host: 'localhost',
user: 'root',
password: '',
database: 'test',
tables:['players'], // only these tables
ifNotExist:true, // Create table if not exist
dest:'./data.sql' // destination file
},function(err){
// create data.sql file;
})
Type: String
Url to Mysql host. Default: localhost
Type: String
Port to Mysql host. Default: 3306
Type: String
The MySQL user to authenticate as.
Type: String
The password of that MySQL user
Type: String
Name of the database to dump.
Type: Array
Array of tables that you want to backup.
Leave Blank for All. Default: [] ALL
Type: Boolean
Output table structure Default: true
;
Type: Boolean
Output table data Default: true
;
Type: Boolean
Create tables if not exist method Default: true
;
Type: String
Output filename with directories Default: './data.sql'
;
Type: String
Path to a unix domain socket to connect to. When used host
and port
are ignored.
The MIT License
FAQs
Create a DUMP from MySQL
The npm package mysqldump receives a total of 11,124 weekly downloads. As such, mysqldump popularity was classified as popular.
We found that mysqldump demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.