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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1639 | 한승! | 채영광 | 2001.02.14 | 2070 |
1638 | 윤재원군 보시오~~~ | 재원아~ | 2001.02.18 | 2081 |
1637 | 음~~~~~~~^^* | Schauberger | 2001.02.24 | 2064 |
1636 | 홈페이지를 조금 고쳤습니다. | 한승석 | 2001.03.02 | 2062 |
1635 | FTP 서버를 열었습니다. | 한승석 | 2001.03.02 | 2062 |
1634 | 현관문이 좀......(홈피대문) | Schauberger | 2001.03.03 | 2071 |
1633 | 현관문은... | 한승석 | 2001.03.03 | 2069 |
1632 | 홈페이지 주소 (hospital.pe.ky hospital.oo.co.kr) 입니다. | 한승석 | 2001.03.03 | 2087 |
1631 | [TIP] 오른쪽 마우스 BLOCK 뚫기 | 한승석 | 2001.03.03 | 2443 |
1630 | 앗!! 주소가 더 추가되었습니다. | 한승석 | 2001.03.03 | 2115 |
1629 | 봄맞이 새단장? *^^* | soma | 2001.03.05 | 2078 |
1628 | 민물장어의 꿈 | soma | 2001.03.05 | 3417 |
1627 | Re: 봄맞이 새단장? *^^* | 한승석 | 2001.03.05 | 2087 |
1626 | [TIP] 유동 IP 로 서버 만드는 법 | 한승석 | 2001.03.24 | 2262 |
1625 | 씨팡 | 씨팡 | 2001.03.28 | 2115 |