npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hesed/mysql

v0.2.1

Published

CLI for MySQL database interaction

Readme

mysql

CLI for MySQL database interaction

Version Downloads/week

Install

sdkck plugins install @hesed/mysql

Usage

$ npm install -g @hesed/mysql
$ mq COMMAND
running command...
$ mq (--version)
@hesed/mysql/0.2.1 linux-x64 node-v22.22.0
$ mq --help [COMMAND]
USAGE
  $ mq COMMAND
...

Commands

mq mysql auth add

Add a MySQL connection profile

USAGE
  $ mq mysql auth add -d <value> --host <value> -p <value> -P <value> --profile <value> -u <value> [--json] [--ssl]

FLAGS
  -P, --port=<value>      (required) MySQL port
  -d, --database=<value>  (required) Database name
  -p, --password=<value>  (required) Password
  -u, --user=<value>      (required) Username
      --host=<value>      (required) MySQL host
      --profile=<value>   (required) Profile name
      --[no-]ssl          Use SSL

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Add a MySQL connection profile

EXAMPLES
  $ mq mysql auth add

  $ mq mysql auth add --no-ssl

See code: src/commands/mysql/auth/add.ts

mq mysql auth test

Test MySQL database connection

USAGE
  $ mq mysql auth test [--json] [--profile <value>]

FLAGS
  --profile=<value>  Profile name to test

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Test MySQL database connection

EXAMPLES
  $ mq mysql auth test

  $ mq mysql auth test --profile staging

See code: src/commands/mysql/auth/test.ts

mq mysql auth update

Update an existing MySQL connection profile

USAGE
  $ mq mysql auth update -d <value> --host <value> -p <value> -P <value> -u <value> [--json] [--profile <value>] [--ssl]

FLAGS
  -P, --port=<value>      (required) MySQL port
  -d, --database=<value>  (required) Database name
  -p, --password=<value>  (required) Password
  -u, --user=<value>      (required) Username
      --host=<value>      (required) MySQL host
      --profile=<value>   Profile name to update
      --[no-]ssl          Use SSL

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update an existing MySQL connection profile

EXAMPLES
  $ mq mysql auth update --ssl

  $ mq mysql auth update --profile staging

See code: src/commands/mysql/auth/update.ts

mq mysql databases

List all databases accessible on the MySQL server

USAGE
  $ mq mysql databases [--profile <value>]

FLAGS
  --profile=<value>  Database profile name from config

DESCRIPTION
  List all databases accessible on the MySQL server

EXAMPLES
  $ mq mysql databases

  $ mq mysql databases --profile staging

See code: src/commands/mysql/databases.ts

mq mysql describe-table TABLE

Describe the structure of a MySQL table

USAGE
  $ mq mysql describe-table TABLE [--format table|json|toon] [--profile <value>]

ARGUMENTS
  TABLE  Table name to describe

FLAGS
  --format=<option>  [default: table] Output format
                     <options: table|json|toon>
  --profile=<value>  Database profile name from config

DESCRIPTION
  Describe the structure of a MySQL table

EXAMPLES
  $ mq mysql describe-table users

  $ mq mysql describe-table orders --format json --profile prod

See code: src/commands/mysql/describe-table.ts

mq mysql explain-query QUERY

Show the execution plan for a MySQL query

USAGE
  $ mq mysql explain-query QUERY [--format table|json|toon] [--profile <value>]

ARGUMENTS
  QUERY  SQL query to explain

FLAGS
  --format=<option>  [default: table] Output format
                     <options: table|json|toon>
  --profile=<value>  Database profile name from config

DESCRIPTION
  Show the execution plan for a MySQL query

EXAMPLES
  $ mq mysql explain-query "SELECT * FROM users WHERE id = 1"

  $ mq mysql explain-query "SELECT * FROM orders JOIN users ON orders.user_id = users.id" --format json

See code: src/commands/mysql/explain-query.ts

mq mysql indexes TABLE

Show indexes for a MySQL table

USAGE
  $ mq mysql indexes TABLE [--format table|json|toon] [--profile <value>]

ARGUMENTS
  TABLE  Table name to show indexes for

FLAGS
  --format=<option>  [default: table] Output format
                     <options: table|json|toon>
  --profile=<value>  Database profile name from config

DESCRIPTION
  Show indexes for a MySQL table

EXAMPLES
  $ mq mysql indexes users

  $ mq mysql indexes orders --format json --profile prod

See code: src/commands/mysql/indexes.ts

mq mysql query QUERY

Execute a SQL query against a MySQL database

USAGE
  $ mq mysql query QUERY [--format table|json|csv|toon] [--profile <value>] [--skip-confirmation]

ARGUMENTS
  QUERY  SQL query to execute

FLAGS
  --format=<option>    [default: table] Output format
                       <options: table|json|csv|toon>
  --profile=<value>    Database profile name from config
  --skip-confirmation  Skip confirmation prompt for destructive operations

DESCRIPTION
  Execute a SQL query against a MySQL database

EXAMPLES
  $ mq mysql query "SELECT * FROM users LIMIT 10"

  $ mq mysql query "UPDATE users SET email = '[email protected]' WHERE id = 999" --format json

  $ mq mysql query "DELETE FROM sessions" --profile prod --skip-confirmation

See code: src/commands/mysql/query.ts

mq mysql tables

List all tables in the current MySQL database

USAGE
  $ mq mysql tables [--profile <value>]

FLAGS
  --profile=<value>  Database profile name from config

DESCRIPTION
  List all tables in the current MySQL database

EXAMPLES
  $ mq mysql tables

  $ mq mysql tables --profile local

See code: src/commands/mysql/tables.ts