I have a MySQL database that I would like in SQLite for an app I'm planning to develop. How would I go about this? Thanks.
I saw the previous question Export a MySQL Database to SQLite Database
However, there was no accepted or definitive solution. So what would be the best approach to doing this?
OK, my solution: (hope somebody finds this useful)
- Installed DB Browser for SQLite from http://sqlitebrowser.org/
- I exported the MySQL structure (without data) as SQL.
- Then cleaned up the SQL according to this link http://livecode.byu.edu/database/mysql-sqliteExport.php
- Then in DB Browser for SQLite imported the cleaned up SQL to create the database and all the tables. I found that DB Browser for SQLite didn't allow importing of CSV data into the already created tables. So I went to the Apple App Store on my Mac and bought and installed SQLPro for SQLite app ($12 Australian...).
- In SQLPro for SQLite I opened the SQLite database created in DB Browser for SQLite.Then exported each MySQL table as CSV and imported those into each existing table in SQLPro for SQLite.
- Done