Skip to content
Browse files

dump and convert in this command

  • Loading branch information...
1 parent 412a691 commit 031f8dccad35f90a3152aae85376316a20681c64 @libkazz committed Nov 7, 2012
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' \

0 comments on commit 031f8dc

Please sign in to comment.
Something went wrong with that request. Please try again.