この Perl スクリプトを見たことがありますか? 私はそれを使用していません-mysqlからsqliteへの移行を簡単に検索したところ、すぐにポップアップしました。
編集(あなたが私のコメントに返信した後):
逆方向はここで扱われます。
繰り返し行う場合やデータ構造の変更が発生する場合は、Djangoのようなものを使用する方がよいでしょう(非常にハックな方法ではありますが)。それで私は:
# This three lines are done once
django-admin.py startproject mymigrationproject
cd mymigrationproject
./manage.py startapp migration
# The following lines you repeat each time you want to migrate the data
edit settings.py and make the changes to connect to MySQL
./manage.py inspectdb > ./migration/models.py
edit ./migration/models.py to reorder tables (tables in which other tables depend on top)
mkdir fixtures
./manage.py dumpdata migration > ./fixtures/data.json
edit settings.py and make the changes to connect to SQLite
./manage.py syncdb
./manage.py loaddata ./fixtures.data.json