Convert MySQL to PostgreSQL.

DBConvert and DBSync for MySQL and PostgreSQL are database migration and synchronization tools designed to simplify the data conversion from MySQL to PostgreSQL.

Transferring data between two different management systems is not a trivial task. There are many obstacles to direct data export. So tools to help transfer data between MySQL and PostgreSQL are in great demand in the market.

Let's compare the well known open source tool, pgloader, with the DBConvert / DBSync DB migration tools.

Pgloader vs. DBConvert tools.

  1. CLI vs. GUI.

    Pgloader is a command-line tool and thus doesn’t have a visual interface.


    DBConvert tools are highly customizable and allow you to quickly and easily export data from MySQL to Postgres using a comprehensive graphical interface.

  2. Configuration.

    To use pgloader, you need to configure it manually before starting database conversion. To be successful with pgloader, you have to do a bit of work to create working configurations.


    In DBConvert products, the target database is presented in the form of a tree, which greatly simplifies the configuration of settings. The proven advantage of DBConvert software is that it can be effectively used by non-professional users.

  3. Database migration directions.

    Pgloader serves data conversion tasks from various databases to PostgreSQL. In other words it transfers databases in ONE direction only.


    In any combination, using our MySQL to PostgreSQL converters, data migrations between the following databases are possible:

    • MySQL,
    • MariaDB,
    • Percona,
    • PostgreSQL,
    • Heroku Postgres,
    • AWS RDS/ Aurora,
    • Google Cloud SQL for MySQL, PostgreSQL,
    • Azure Database for MySQL, PostgreSQL

    Refer to the list of available conversion and sync directions in product info cards on the right.

  4. Database synchronization.

    DBSync software keeps your databases in Sync with Update, Insert, and Drop synchronization features.

    Bi-directional synchronization helps to update data in both source and destination databases simultaneously.

    Trigger-based Synchronization algorithm is developed to accurately analyze the destination database data and instantly track changes in both databases. The trigger-based sync method increases recurrent synchronization speed in times.

Even if you have no direct access to MySQL or PostgreSQL servers, generated by DBConvert dump files are useful to get over server access restrictions.

For recurring synchronization and conversion processes, use the Built-in Scheduler.

Convert MySQL to PostgreSQL

Moving and synchronizing data from MySQL to PostgreSQL can't be more comfortable than using our migration software. Wizard interface will guide you through several easy steps to perform fast and robust data migration and sync from MySQL to PostgreSQL databases.

 DBConvert for MySQL & PostgreSQL

Migration directions:

  • MySQL → PostgreSQL, PostgreSQL Dump, PostgreSQL PHP Script, MySQL Dump, MySQL PHP Script
  • PostgreSQL → MySQL, MySQL Dump, MySQL PHP Script, PostgreSQL Dump, PostgreSQL PHP Script
  • MySQL ↔ MariaDB
  • MySQL ↔ Amazon RDS | Aurora ↔ PostgreSQL
  • MySQL ↔ Heroku Postgres ↔ PostgreSQL
  • MySQL ↔ Azure Database for MySQL ↔ PostgreSQL
  • MySQL ↔ Google Cloud ↔ PostgreSQL

Version: 4.3.5

Release Date: Feb. 12, 2020

 DBSync for MySQL & PostgreSQL

Sync directions:

  • MySQL, MariaDB ↔ PostgreSQL
  • MySQL ↔ MariaDB
  • MySQL ↔ Amazon RDS | Aurora ↔ PostgreSQL
  • MySQL, MariaDB ↔ Heroku Postgres ↔ PostgreSQL
  • MySQL, MariaDB ↔ Google Cloud ↔ PostgreSQL
  • MySQL, MariaDB ↔ Azure Database for MySQL ↔ PostgreSQL

Version: 3.8.3

Release Date: April 25, 2019

Try All-in-one DB migration and Sync software.

DBConvert Studio

 Version: 1.8.4

Release Date: Nov. 23, 2020

Supported databases:

  • SQL Server
  • MySQL
  • Oracle
  • PostgreSQL
  • Access
  • FoxPro
  • SQLite
  • Firebird
  • Excel
  • IBM DB2
  • Azure SQL
  • Amazon RDS
  • Amazon Aurora
  • Heroku Postgres
  • Google Cloud

Using MySQL to PostgreSQL conversion and synchronization tools.

When you start DBConvert or DBSync application in GUI mode it guides you through several steps to set up the database migration or synchronization:

1. Connect to MySQL source database.

If a source database requires you to log in, you can specify a user name/ password and host/ port parameters.

Connect to MySQL source database from DBConvert

2. Connect to PostgreSQL destination database.

Specifying parameters for destination database looks like the same as for source. Usually, it consists of defining connection settings and username/password pairs.

Connect to PostgreSQL target database from DBConvert

NOTE #1: Every DBConvert or DBSync tool has two different databases in its name. That means any specified database from a pair can be set up as a source or destination. Besides, the same type of database may be set up both as a source or destination.

As an example, here is the list of possible migration directions with on-premises databases:

  • MySQL to PostgreSQL
  • PostgreSQL to MySQL
  • MySQL to MySQL
  • PostgreSQL to PostgreSQL

NOTE #2: Don't be confused by the fact that connections to cloud databases like Amazon RDS, Microsoft Azure SQL, Google Cloud, and Heroku are not explicitly specified in the configuration of a source or destination in the DBConvert / DBSync interface. To connect to Cloud database instances, use the same settings as you do for traditional on-premises databases.

NOTE #3: Your connections to source and target databases stay active until you close DBConvert/ DBSync application or reopen new connections on "source" and "destination" steps.

Read more about the specific source/ destination configurations for different databases.

3. Custoimzation and configuration.

At the next step, you can specify precisely which tables, fields, indices, views you want to transfer to the PostgreSQL destination database. Just check/ uncheck the box in front of each database object you want to convert.

Customize general database/ tables settings. Or set up a particular table , field, index individually when migrating data from MySQL to PostgreSQL.

Check out our articles about Custoimzation and configuration. for detailed information.

The screenshot below sums up general features available in DBConvert software solutions.

4. Detection of potential database migration issues. Errors and Warnings

The database typically constrains certain relations on the data that cannot be violated. On the customization step, a smart error checker verifies all possible Data integrity and Referential integrity issues and highlights them, if any, before performing a migration.

DBConvert software to default tries to automatically map database types from the source MySQL database to the closest equivalent of the target PostgreSQL database types. But you can manually change data types for the whole database globally with "Global mapping" or individually for each field.

Check out Smart error checker. Errors and Warnings for more information.

5. Execution. The final stage of data migration from MySQL to PostgreSQL

Once you configure source and destination databases for migration in the previous steps, you can start the actual conversion or synchronization process.

Click the "Commit" button to start conversion. Also, here, you can monitor the migtation/ synchronization process.

Optionally save connection settings and configuration parameters into the session file to schedule the launching of sync or migration jobs regularly.

Execution step of DBConvert products

Read more about execution stage available options.

Command line mode

Previously saved sessions can be passed as parameters to Command-Line DBConvert Client. A session keeps MySQL source and PostgreSQL target database connection settings with other specified options.

Example: C:\Program Files\DBConvert\mysql2postgresqlPro\mysql2postgresqlPro_Cons.exe /Session:"Session_Name"

NOTE: First, you have to run the software in GUI mode to create a session file with initial parameters.

Built-in scheduler.

Our applications come with a built-in scheduler to run database migration and sync jobs at specified times. Just set the scheduled date and time to execute job sessions automatically.

DBConvert screenshot

Highlights

Requirements

  • Necessary privileges to write into database on the target PostgreSQL server (this requirement is optional as there is an option to overcome the restrictions using dump file or PHP Script)
  • Necessary privileges to write into database on the target MySQL server (this requirement is optional as there is an option to overcome the restrictions using dump file or PHP Script)