Migration from SQLite to MySQL

From Littledamien Wiki
Revision as of 13:44, 5 March 2024 by Video8 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview[edit]

Steps for exporting SQLite data and objects and importing them into a MySQL database.

Exporting from SQLite[edit]

> sqlite3 mySqliteDatabase.db .dump >> myDumpFile.sql

Importing into MySQL[edit]

  • Edit the dump file to make the SQL compatible with MySQL.
    • Replace double-quotes with back-ticks
    • Remove BEGIN TRANSACTION, COMMIT and lines related to sqlite_sequence
    • Replace autoincrement with auto_increment
  • Import the SQL using phpMyAdmin