Skip to content

Instantly share code, notes, and snippets.

@gerhard-tinned
gerhard-tinned / sqlite2mysql.py
Last active August 30, 2015 19:42 — forked from yanbab/sqlite2mysql.py
Convert SQLite database toMySQL/MariaDB
#! /usr/bin/env python
#
# Usage:
#
# 1. Dump your sqlite db : sqlite3 database.sqlite3 .dump > dump.sql
# 2. run script : cat dump.sql | python sqlite2mysql.py > dump.my.sql
# 3. import SQL schema in MySQL : mysql -u USER -p DBName < dump.my.sql
#
import sys