/sqlite3-to-mysql

Take a sqlite3 sql-dump file and make it mysql readable.

Primary LanguageShell

sqlite3-to-mysql

Simple sed script for attempting to convert Sqlite3 sql to MySql sql.

Usage:

sqlite3-to-mysql db/development.sqlite3 | mysql -u YOURUSERNAME -p YOURDATABASE

Notes

Please note that sed needs to be in your $PATH

Not guaranteed to work, but can serve as a starting point.

It worked for my case though.

Decided to make this after trying the yaml_db gem, which I found to be excruciatingly slow for any dataset of considerable size.