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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
319 | 넌센스 퀴즈 | WHRIA | 2016.09.04 | 82 |
318 | 공유 메모리 예제 | WHRIA | 2016.09.09 | 138 |
317 | 윈도우 서비스에서 유저 권한으로 createprocess | WHRIA | 2016.09.10 | 2022 |
316 | 힘든 하루하루 | WHRIA | 2016.09.30 | 83 |
315 | youtube | WHRIA | 2016.09.30 | 61 |
314 | 만기까지 끌어 올림. | WHRIA | 2016.09.30 | 85 |
313 | . | WHRIA | 2016.10.01 | 102 |
312 | KMA 연수교육 주소 | WHRIA | 2016.10.05 | 123 |
» | sqlite to mysql | WHRIA | 2016.10.18 | 105 |
310 | caffe | WHRIA | 2016.10.19 | 123 |
309 | 이미지 size 줄이는 batch | WHRIA | 2016.10.19 | 110 |
308 | 이미지를 정사각형으로 만드는 batch | WHRIA | 2016.10.22 | 1199 |
307 | % 빼고 center crop | WHRIA | 2016.10.22 | 329 |
306 | jquery java | WHRIA | 2016.12.13 | 1792 |
305 | fast rcnn cudnn 5.0 | WHRIA | 2017.01.08 | 157 |