Registry / devops / mysql2-cli

mysql2-cli

JSON →
library1.1.7jsnpmunverified

MySQL2 CLI is a simple command-line interface for connecting to MySQL, PostgreSQL, SQLite, and SQL Server databases. Version 1.1.7 provides a unified tool to interact with multiple database engines using connection strings. It supports MySQL, PostgreSQL, SQLite, and SQL Server, with plans for more. The tool is lightweight and designed for quick database exploration from the terminal.

npm install mysql2-cli
INSTALL
IMPORT
SIG · MYSQL2-CLI
M
mysql2-cli
devopsjavascriptv1.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Install the CLI globally and connect to a MySQL database using a connection string.

npm install -g mysql2-cli mysql2-cli mysql://root:123456@localhost:3306/mysql
Debug
Known issues
gotchaThe package name 'mysql2-cli' may be confused with 'mysql-cli'.
fix
Ensure you install 'mysql2-cli' not 'mysql-cli'.
affects: all
Errors
Common errors & fixes
mysql2-cli: command not found
CLI not installed globally or not in PATH.
fix
Run 'npm install -g mysql2-cli' and ensure npm global bin directory is in PATH.
Upgrade
Version history
1.1.7latest on npm
Audit
Dependencies
mysql2requiredCore MySQL driver for database connections
pgoptionalPostgreSQL driver for database connections
better-sqlite3optionalSQLite driver for database connections
mssqloptionalSQL Server driver for database connections
Agent activity
2 hits · last 30 days
node
2
Resources
mysql2-cli — npm install mysql2-cli · libregistry