mysql

Execute SQL queries against MySQL databases using a Docker-based client.

16|2|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/kubiyabot/skill --skill mysql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mysql
Source: https://github.com/kubiyabot/skill/tree/main/examples/docker-runtime-skills/mysql-skill
Command: npx skills add https://github.com/kubiyabot/skill --skill mysql

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a Docker-based MySQL client to execute SQL queries against MySQL databases from within AI-driven workflows, enabling automated data access without managing local clients.

Core Features & Use Cases

  • Docker-based CLI: Run queries against local or remote MySQL servers inside a container.
  • Ad hoc queries & schema exploration: Create databases, list tables, describe schemas, and run SELECT/INSERT/UPDATE statements.
  • Operational automation: Export data, monitor server status, and manage connections in automated pipelines.

Quick Start

Install the skill with skill install ./examples/docker-runtime-skills/mysql-skill Run a simple query: skill run mysql -- -h localhost -u myuser -e "SELECT 1" mydb Use an environment variable for the password: MYSQL_PASSWORD=secret skill run mysql -- -h localhost -u myuser -e "SHOW DATABASES" mydb

Frequently Asked Questions about mysql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run ad hoc MySQL queries inside a Docker container?

To run ad hoc MySQL queries in a Docker container, use a Docker-based MySQL client to connect to local or remote MySQL servers and execute SQL statements. It pulls an official mysql image to run commands like SELECT or SHOW DATABASES.

Can I manage MySQL schemas and monitor server status from an automated pipeline?

Yes, you can manage MySQL schemas and monitor server status from an automated pipeline. The Docker-based MySQL client allows you to create databases, list tables, describe schemas, and check server status within AI-driven workflows.

Do I need Docker installed to use a containerized MySQL client?

Yes, Docker is required to use this containerized MySQL client. The skill relies on Docker to run an official mysql:8 image, which isolates the database client environment and executes SQL queries without managing local installations.

How do I pass credentials securely when connecting to MySQL servers in automation?

To pass credentials securely when connecting to MySQL servers in automation, configure the password using an environment variable like MYSQL_PASSWORD. This prevents exposing sensitive credentials directly in the command line during query execution.

What is the best way to execute SQL queries against remote MySQL databases without a local client?

The best way to execute SQL queries against remote MySQL databases without a local client is using a Docker-based MySQL client. It connects to remote servers via command-line flags and runs SQL statements inside an isolated container.

Why does my Docker MySQL query fail with a connection refused error?

A Docker MySQL query fails with a connection refused error when the container cannot reach the specified MySQL server. Ensure the target database host is accessible and that the correct connection parameters and credentials are passed to the client.