Skip to content

Commit

Permalink
Merge pull request #7 from stefl/patch-1
Browse files Browse the repository at this point in the history
Slight tweaks to the readme for readability
  • Loading branch information
andrewgodwin committed Jul 23, 2013
2 parents 323e058 + db6ab82 commit 28ab3f9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Expand Up @@ -11,12 +11,20 @@ for column typing purposes.
How to use
----------

Firstly, dump your database using `mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root databasename`.
First, dump your MySQL database in PostgreSQL-compatible format

Then, run the converter script using `python dbconverter.py databasename.mysql databasename.psql` - it'll print
progress to the terminal.
mysqldump --compatible=postgresql --default-character-set=utf8 \
-r databasename.mysql -u root databasename

Finally, load your new dump into a fresh PostgreSQL database using `psql -f databasename.psql`.
Then, convert it using the dbconverter.py script

`python dbconverter.py databasename.mysql databasename.psql`

It'll print progress to the terminal.

Finally, load your new dump into a fresh PostgreSQL database using:

`psql -f databasename.psql`

More information
----------------
Expand Down

0 comments on commit 28ab3f9

Please sign in to comment.