sqlite to mysql
2016.10.18 09:41
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.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
216 | 넌센스 퀴즈 | WHRIA | 2016.09.04 | 75 |
215 | 공유 메모리 예제 | WHRIA | 2016.09.09 | 121 |
214 | 윈도우 서비스에서 유저 권한으로 createprocess | WHRIA | 2016.09.10 | 1995 |
213 | 힘든 하루하루 | WHRIA | 2016.09.30 | 77 |
212 | youtube | WHRIA | 2016.09.30 | 39 |
211 | 만기까지 끌어 올림. | WHRIA | 2016.09.30 | 70 |
210 | . | WHRIA | 2016.10.01 | 81 |
209 | KMA 연수교육 주소 | WHRIA | 2016.10.05 | 100 |
» | sqlite to mysql | WHRIA | 2016.10.18 | 57 |
207 | caffe | WHRIA | 2016.10.19 | 106 |
206 | 이미지 size 줄이는 batch | WHRIA | 2016.10.19 | 71 |
205 | 이미지를 정사각형으로 만드는 batch | WHRIA | 2016.10.22 | 1177 |
204 | % 빼고 center crop | WHRIA | 2016.10.22 | 297 |
203 | jquery java | WHRIA | 2016.12.13 | 1757 |
202 | fast rcnn cudnn 5.0 | WHRIA | 2017.01.08 | 128 |