Convert PostgreSQL to MySQL.

Reasons to migrate from PostgreSQL to MySQL?

Migrating from PostgreSQL to MySQL is a common scenario for many companies, particularly when looking to move from a completely open-source database to a more commercial one.

  • Need for more support and commercial-level features, including performance and scalability enhancements, improved security, and technical support.
  • Maintained and developed by the company Oracle.
  • Widely used in production environments.
  • More widely adopted and has a larger community of users, which can make finding solutions to problems or getting help with the database easier.
  • May offer better compatibility with other technologies and tools that the organization is already using, making the overall technology stack easier to manage.

Converting a PostgreSQL database to MySQL manually can be a complex and time-consuming process, which is why using a tool such as DBConvert can be helpful. DBConvert is a powerful and user-friendly tool that automates the process of converting a PostgreSQL database to MySQL.

With DBConvert, you can easily transfer data from PostgreSQL to MySQL, including tables, indices, views, triggers, and stored procedures. The tool supports various data types and can handle complex data structures, including nested tables and foreign key constraints.

In addition to the data migration process, DBSync for PostgreSQL and MySQL also allows you to synchronize the schema and data between the two databases, making it easy to keep the two databases in sync as changes are made.

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

Parallel migration.

The new parallel migration engine of DBConvert takes full advantage of modern multi-core processors. That speeds up data migration between MySQL and Postgres databases by splitting tables into multiple parts and processing them in parallel.

DBConvert Streams.

DBConvert Streams is a powerful, flexible software solution that converts heterogeneous databases and facilitates real-time Change Data Capture (CDC) data replication.

This preview version of DBConvert Streams is free, allowing users to explore its capabilities and benefits. The cross-platform and cloud-first software enables seamless execution across different operating systems and cloud environments. It can also be efficiently run in a Docker container, providing a convenient and scalable deployment option.

With its blazingly fast performance, DBConvert Streams excels in data transfer speed. For example, it can transfer 10 million records in approximately 30 seconds, showcasing its high efficiency. Moreover, it took about 6 minutes to copy 100 million records from the source to the target database, further demonstrating its impressive performance.

Its event-driven replication feature supports MySQL and PostgreSQL databases, making it an ideal tool for data integration and streaming across distributed platforms.

For further information, please refer to the DBConvert Streams documentation available at

Supported databases:
  • MySQL
  • PostgreSQL
  • MariaDB
  • SingleStore DB (formerly MemSQL)
  • TiDB
  • Percona Server for MySQL
  • Vitess
  • CockroachDB
  • Amazon RDS for MySQL
  • Amazon RDS for PostgreSQL
  • Amazon Aurora (MySQL Compatible)
  • Amazon Aurora (PostgreSQL Compatible)
  • Heroku Postgres
  • Azure Database for MySQL
  • Azure Database for PostgreSQL
  • Google Cloud
  • PostgreSQL Dump
  • PostgreSQL PHP Script
  • MySQL Dump
  • MySQL PHP Script
 DBConvert for MySQL & PostgreSQL

Version: 4.3.8

Release Date: Sept. 12, 2022

 DBSync for MySQL & PostgreSQL

Version: 3.8.6

Release Date: Nov. 21, 2022

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

DBConvert Studio

 Version: 3.4.0

Release Date: May 17, 2023

Supported databases:

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

Using PostgreSQL to MySQL 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 PostgreSQL source database.

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

Connect to PostgreSQL source database from DBConvert

2. Connect to MySQL 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 MySQL 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:

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

NOTE #2: Don't be confused by the fact that connections to cloud databases like Amazon RDS, 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. Configure database migration options.

At the next step, you can specify precisely which tables, fields, indices, views you want to transfer to the MySQL 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 PostgreSQL to MySQL.

Check out our articles about Configure database migration options. 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.

By default, DBConvert tries to automatically map the database types of the source PostgreSQL database to the closest equivalent of the target MySQL database types. However, you can manually change the data types for the entire database globally using the "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 PostgreSQL to MySQL

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 PostgreSQL source and MySQL 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.

Find more Information about built-in scheduler

DBConvert screenshot

Supported OS:


  • 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)
  • 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)


Read information about reverse migration.