Search code examples
mysqlsqlitemigration

Quick easy way to migrate SQLite3 to MySQL?


Anyone know a quick easy way to migrate a SQLite3 database to MySQL?


Solution

  • Here is a list of converters (not updated since 2011):


    An alternative method that would work nicely but is rarely mentioned is: use an ORM class that abstracts specific database differences away for you. e.g. you get these in PHP (RedBean), Python (Django's ORM layer, Storm, SqlAlchemy), Ruby on Rails (ActiveRecord), Cocoa (CoreData)

    i.e. you could do this:

    1. Load data from source database using the ORM class.
    2. Store data in memory or serialize to disk.
    3. Store data into destination database using the ORM class.