---
title: "Migrating data from MySQL to Turso"
description: "Moving a MySQL database to Turso takes three commands: dump it with mysqldump using --skip-extended-insert, convert the dump to a SQLite file with the mysql2sqlite script piped into sqlite3, then create a Turso database from that file with `turso db create --from-file`."
url: "https://swe.quest/articles/migrating-data-from-mysql-to-turso-b6fe55604096d41a"
canonical: "https://turso.tech/blog/migrating-data-from-mysql-to-turso"
source: "Turso"
published: "2024-03-08"
difficulty: "medium"
kind: "How-to"
reading_minutes: 2
tags: ["sqlite","mysql","schema-migrations"]
---

# Migrating data from MySQL to Turso

A post on [Turso](https://swe.quest/sources/turso.md), published 2024-03-08, 2 min read, How-to. Original: [https://turso.tech/blog/migrating-data-from-mysql-to-turso](https://turso.tech/blog/migrating-data-from-mysql-to-turso)

## Summary

Moving a MySQL database to Turso takes three commands: dump it with mysqldump using --skip-extended-insert, convert the dump to a SQLite file with the mysql2sqlite script piped into sqlite3, then create a Turso database from that file with \`turso db create --from-file\`. Row counts can be checked with the sqlite3 shell after conversion and with \`turso db shell\` after import. Larger migrations may hit issues that need extra help.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)

## Prerequisites

- MySQL basics ([easy posts on MySQL](https://swe.quest/tags/mysql.md?difficulty=easy))
- SQLite CLI ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))

## Keywords

Turso, mysqldump, mysql2sqlite, sqlite3, Turso CLI

## Related posts

- [Migrating from PostgreSQL/MySQL to SQLite: When and How to Make the Switch](https://swe.quest/articles/migrating-from-postgresql-mysql-to-sqlite-when-and-how-to-make-the-switch-9d0f845128cffdd6.md): Turso · 2026-08-12 · Medium · 9 min read · SQLite, Schema migrations, PostgreSQL, MySQL, Databases
  SQLite, especially via Turso Cloud, can replace PostgreSQL or MySQL for read-heavy, moderate-write workloads, trading complex-JOIN optimization, stored procedures, rich types and native replication for simpler operations, lower cost and local reads.
- [You can now migrate your existing databases to AWS](https://swe.quest/articles/you-can-now-migrate-your-existing-databases-to-aws-664f4db954322a62.md): Turso · 2025-05-12 · Medium · 4 min read · SQLite, Databases, Cloud platforms
  Turso paid-plan users can move database groups from Fly.io to AWS with new \`turso group aws-migration info/start/abort\` CLI commands; free-tier users have already been migrated.
- [Turso v0.6.0](https://swe.quest/articles/turso-v0-6-0-5eb94c2c93fd0b4b.md): Turso · 2026-05-12 · Medium · 12 min read · SQLite, Databases, SQL, Storage engines
  Turso 0.6 is the first release supporting all major SQLite features, adding experimental multi-process WAL access (OFD locks on Linux, fcntl elsewhere, IOCP on Windows) and VACUUM/VACUUM INTO.
- [Create a fast, performant admin UI with Retool and Turso](https://swe.quest/articles/create-a-fast-performant-admin-ui-with-retool-and-turso-5c186550c3794073.md): Turso · 2023-11-16 · Medium · 7 min read · SQLite, Product engineering, E-commerce
  A Retool admin dashboard for an e-commerce mug store can read and write data in a Turso (libSQL) database through Turso's HTTP API, configured as a Retool REST API resource.
- [Turso Sync: a much, much, much better way to sync](https://swe.quest/articles/turso-sync-a-much-much-much-better-way-to-sync-f7b69ab545fa6e56.md): Turso · 2026-04-24 · Medium · 8 min read · SQLite, Local-first & sync, Replication, Performance engineering
  Turso, a Rust rewrite of SQLite, replaces libSQL's Embedded Replicas with a sync model built on change data capture, shipping logical changes instead of physical pages and splitting sync into separate push() and pull() operations.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
