Sourse repository: https://gist.github.com/esperlu/943776
copy paste this in a file, say: mysql2sqlite.sh file
make it executable:
$ chmod +x mysql2sqlite.sh
run it
$ ./mysql2sqlite.sh -u MyUserName -pMySecretPassWord myDbase | sqlite3 database.sqlite
If you only need to create the table structures without data:
$ ./mysql2sqlite.sh --no-data -u MyUserName -pMySecretPassWord myDbase | sqlite3 database.sqlite