New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@carisls/mysql-pull

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carisls/mysql-pull

A CLI tool to pull all accounts from MySQL server and create separate files with user and their privileges.

latest
npmnpm
Version
1.3.1
Version published
Maintainers
2
Created
Source

MySQL Access Pull

A CLI tool to pull all accounts from MySQL server and create separate files with user and their privileges.

Tool allows a header wrapped in a multiline comment at the top

/*
  Application: Application 1
  Server: my-server.example.com
  Owner: MyName@example.com
*/

Install

npm i -g @carisls/mysql-pull

Usage

Example: Provide a connection string, a destination folder and an ignore pattern

dbPull -c 'mysql://username:password@db.server.com:3306/database' -f ./service-accounts -i '_123$'

Needed privileges

In order to excute this CLI and be able to pull all user privileges, user needs to have those grants:

-- Replace 'your_user'@'your_host' with your user
GRANT SELECT ON mysql.* TO 'your_user'@'your_host';
GRANT SHOW DATABASES ON *.* TO 'your_user'@'your_host';

Help

Usage: dbPull [options]

Options:
  -V, --version                    output the version number
  -c, --connectionString <string>  Database connection string (alt DATABASE_CONN env var)
  -f, --folder <string>            Destination folder
  -i, --ignore <string>            Ignore account RegExp pattern
  -h, --help                       display help for command

FAQs

Package last updated on 07 Apr 2025

Did you know?

Socket

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.

Install

Related posts