Skip to content

sqlite to mysql

2016.10.18 09:41

WHRIA 조회 수:57

HowTo: Migrate a database dump from SQLite to MySQL

Grab the (sqlite) sql dump an fire up your editor:

sqlite3 db/development.sqlite .dump .quit > dump.sql

You have to make these replacements:

  • replace all double-quotes (") with grave accents (´) (in vim just type :%s/"/´/)
  • replace "autoincrement" with "auto_increment"
  • remove "BEGIN TRANSACTION;" from the beginnig of the dump
  • remove "COMMIT;" from the end of the dump
  • remove all lines containing "sqlite_sequence"

Now you can simply import your new MySQL dump.

번호 제목 글쓴이 날짜 조회 수
1624 batch normalize WHRIA 2020.02.06 44
1623 exif remove WHRIA 2020.01.28 34
1622 nvidia docker WHRIA 2020.01.15 42
1621 lvm 축소 확장 [4] WHRIA 2020.01.13 57
1620 xml json pascal [4] WHRIA 2020.01.12 64
1619 nvidia caffe WHRIA 2020.01.12 46
1618 retinanet nvidia [3] WHRIA 2020.01.12 68
1617 lvm [2] WHRIA 2020.01.09 39
1616 usb 3.1 + DP WHRIA 2020.01.07 167
1615 raid 6 rebuild WHRIA 2020.01.07 35
1614 add extra raid disk WHRIA 2020.01.05 80
1613 참고 또 참고 WHRIA 2020.01.03 69
1612 R graph WHRIA 2019.12.29 228
1611 melanoma awareness [1] WHRIA 2019.12.27 45
1610 윈도우 raid ahci 전환 WHRIA 2019.12.26 37

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소