Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dump and convert in this command

  • Loading branch information...
commit 031f8dccad35f90a3152aae85376316a20681c64 1 parent 412a691
@libkazz authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.rdoc
  2. +1 −1  sqlite3-to-mysql
View
2  README.rdoc
@@ -6,7 +6,7 @@ to MySql sql.
== Usage:
- sqlite3-to-mysql filename.sql > filename.new.sql
+ sqlite3-to-mysql db/development.sqlite3 | mysql -u YOURUSERNAME -p YOURDATABASE
== Notes
View
2  sqlite3-to-mysql
@@ -1,5 +1,5 @@
#/usr/bin/env sh
-cat $1 | \
+sqlite3 $1 .dump | \
sed \
-e '/PRAGMA.*;/ d' \
-e '/BEGIN TRANSACTION.*/ d' \
Please sign in to comment.
Something went wrong with that request. Please try again.