Origin: https://news.ycombinator.com/item?id=39798115
Replace the database name by yours
mysqldump --no-data $DB_NAME --result-file myschema.sql
Download mysql2sqlite from https://github.com/dumblob/mysql2sqlite
./mysql2sqlite myschema.sql | sqlite3 mysqlite3.db