diff --git a/docs/howto/mysql.html b/docs/howto/mysql.html index c7bef21..dcaea15 100644 --- a/docs/howto/mysql.html +++ b/docs/howto/mysql.html @@ -85,7 +85,7 @@
If you want to migrate your data over to PostgreSQL from MySQL then pgloader is the tool of choice!
Most tools around are skipping the main problem with migrating from MySQL, which is to do with the type casting and data sanitizing that needs to be done. pgloader will not leave you alone on those topics.
As an example, we will use the f1db database from
$ mysql -u root
> create database f1db;
> source f1db.sql
Now let's migrate this database into PostgreSQL in a single command line:
$ createdb f1db
-$ pgloader mysql://root@localhost/f1db pgsql://f1db
Done! All with schema, table definitions, constraints, indexes, primary keys, auto_increment columns turned into bigserial , foreign keys, comments, and if you had some MySQL default values such as ON UPDATE CURRENT_TIMESTAMP they would have been translated to a PostgreSQL before update trigger automatically.
$ pgloader mysql://root@localhost/f1db pgsql:///f1db
+$ pgloader mysql://root@localhost/f1db pgsql:///f1db
Done! All with schema, table definitions, constraints, indexes, primary keys, auto_increment columns turned into bigserial , foreign keys, comments, and if you had some MySQL default values such as ON UPDATE CURRENT_TIMESTAMP they would have been translated to a PostgreSQL before update trigger automatically.
$ pgloader mysql://root@localhost/f1db pgsql:///f1db
2017-06-16T08:56:14.064000+02:00 LOG Main logs in '/private/tmp/pgloader/pgloader.log'
2017-06-16T08:56:14.068000+02:00 LOG Data errors in '/private/tmp/pgloader/'
2017-06-16T08:56:19.542000+02:00 LOG report summary reset
diff --git a/docs/src/mysql.md b/docs/src/mysql.md
index 29b7a63..cbeee4f 100644
--- a/docs/src/mysql.md
+++ b/docs/src/mysql.md
@@ -25,7 +25,7 @@ Once you've done that load the database in MySQL:
Now let's migrate this database into PostgreSQL in a single command line:
$ createdb f1db
- $ pgloader mysql://root@localhost/f1db pgsql://f1db
+ $ pgloader mysql://root@localhost/f1db pgsql:///f1db
Done! All with schema, table definitions, constraints, indexes, primary
keys, *auto_increment* columns turned into *bigserial* , foreign keys,