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.
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-sqlite3Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/techouse/mysql-to-sqlite3 /tmp/mysql-to-sqlite3 && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mysql-to-sqlite3/skills/mysql-to-sqlite3 ~/.gemini/antigravity-cli/skills/mysql-to-sqlite3Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
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.
