Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mysql-to-sqlite3

Skill by techouse

Guides users through transferring MySQL or MariaDB schema and data into SQLite using mysql2sqlite. It produces copy-pasteable local or Docker commands and explains the tool's caveats.

  • Score 71
  • 275 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mysql-to-sqlite3

Built from the published package, never by AI.

git clone --depth 1 https://github.com/techouse/mysql-to-sqlite3 /tmp/mysql-to-sqlite3 && mkdir -p ~/.claude/skills && cp -r /tmp/mysql-to-sqlite3/skills/mysql-to-sqlite3 ~/.claude/skills/mysql-to-sqlite3

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mysql-to-sqlite3 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an AI assistant plan and run mysql2sqlite transfers from MySQL or MariaDB into a SQLite 3 database file. It gathers the needed connection details, such as destination file, source database, user and host, and asks users not to paste passwords. It then produces a command for either an installed CLI or the Docker image, with options for schema only, data only, selected or excluded tables, row-limited samples, SSL, views and STRICT tables.

The skill also checks invalid or risky option combinations before giving commands and notes type mapping, such as JSON and TIMESTAMP behavior. Responses include assumptions, one command, relevant caveats and a verification step. It is aimed at users who need to migrate or sample MySQL or MariaDB data into SQLite.

Written from the project's SKILL.md and checked against it.

What it can do

  • Gather transfer inputsCollects the destination file, source database, user, host, port and runtime before giving a command.
  • Build local commandsProduces a full mysql2sqlite command with short or long flags for a local transfer.
  • Build Docker commandsProduces a Docker run command that mounts the working directory and uses the mysql-to-sqlite3 image.
  • Schema or data onlyAdds options for schema only or data into an existing SQLite schema.
  • Table selection and samplingCovers selected tables, excluded tables and row-limited samples.
  • SSL optionsAdds CA verification and client certificate settings for MySQL connections.
  • Check option combinationsWarns about invalid or risky flag combinations before producing commands.
  • Explain type mappingDescribes how JSON, ENUM, SET and TIMESTAMP columns are represented in SQLite.

What you need

  • Access to a MySQL or MariaDB server
  • mysql2sqlite installed with pip or Homebrew, or the Docker image
  • Docker for the containerized workflow

Try asking

  • Give me a mysql2sqlite command to copy app_db into ./app.sqlite3
  • Make a Docker command to transfer only the schema from MariaDB to SQLite
  • Create a mysql2sqlite command that samples 100 rows per table

Good to know

  • Foreign keys are not transferred when using selected or excluded tables.
  • --without-tables requires the target SQLite tables to already exist.
  • Older SQLite versions log a warning and create non-STRICT tables.
  • --skip-ssl cannot be combined with SSL certificate options.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/mysql-to-sqlite3/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to mysql-to-sqlite3

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

mysql-to-sqlite3: common questions

Are foreign keys kept when I transfer only some tables?

No. The skill states that using --mysql-tables or --exclude-mysql-tables disables foreign key transfer.

How are MySQL JSON columns handled in SQLite?

JSON maps to SQLite JSON only when JSON1 is available, otherwise to TEXT. The --json-as-text option forces TEXT.

Should I paste my database password into the chat?

No. The skill says not to ask for passwords and prefers the -p prompt option for interactive commands.

How do I install mysql-to-sqlite3?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mysql-to-sqlite3 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mysql-to-sqlite3 safe to use?

It scores 71 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mysql-to-sqlite3?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

mysql-to-sqlite3 Install

Add to stack

Loading.