Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL to SQLite converter

I have two tables

regions(id, name)
countries(id, name, region_id)

which is in MySQL format and i want to convert it into SQLite database. I have tried a few softwares but i am not able to get it to convert.

Is there any easy wat to convert them considering its a fairly simple tables.

I had a look at the following links

http://www.sqlite.org/cvstrac/wiki?p=ConverterTools

http://dbconvert.com/convert-sqlite-to-mysql-pro.php

Either the software is paid or i am not able to get them to work.

like image 666
Harsha M V Avatar asked Oct 04 '22 13:10

Harsha M V


1 Answers

See this Gist. It works on Linux.

like image 68
Alix Axel Avatar answered Oct 13 '22 11:10

Alix Axel