Skip to content

sqlite to mysql

2016.10.18 09:41

WHRIA 조회 수:106

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.

번호 제목 글쓴이 날짜 조회 수
1519 good luck ! WHRIA 2019.03.21 315
1518 민원24 프린터제한을 우회하거나 PDF 로 저장하는 방법 file WHRIA 2015.07.12 320
1517 % 빼고 center crop WHRIA 2016.10.22 329
1516 nvidia dali [1] WHRIA 2020.08.01 330
1515 IPTV WHRIA 2015.11.01 333
1514 IEEE Spectrum WHRIA 2018.02.27 337
1513 reverse VNC WHRIA 2018.02.14 346
1512 python pdf writer WHRIA 2019.11.04 349
1511 CNN Models WHRIA 2018.12.23 353
1510 scopus [1] WHRIA 2020.08.02 355
1509 Keratinocytic Skin Cancer Detection on the Face Using Region-Based Convolutional Neural Network WHRIA 2019.12.07 365
1508 미래가 보이지 않는다. WHRIA 2017.07.01 367
1507 gpt2 WHRIA 2023.02.21 398
1506 Windows Subsystem Linux WHRIA 2018.01.01 425
1505 HASh benchmark WHRIA 2019.03.10 436

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소