How can I import an "xxxx.sql" dump from MySQL to a PostgreSQL database?
It is not possible to import an Oracle (binary) dump to PostgreSQL.
To convert MySQL data to PostgreSQL, you will need ODBC Driver for PostgreSQL from Devart. You need to configure its options before proceeding with the data export task. That can be done right from the Data Export Wizard.
This question is a little old but a few days ago I was dealing with this situation and found pgloader.io.
This is by far the easiest way of doing it, you need to install it, and then run a simple lisp script (script.lisp) with the following 3 lines:
/* content of the script.lisp */ LOAD DATABASE FROM mysql://dbuser@localhost/dbname INTO postgresql://dbuser@localhost/dbname; /*run this in the terminal*/ pgloader script.lisp
And after that your postgresql DB will have all of the information that you had in your MySQL SB.
On a side note, make sure you compile pgloader since at the time of this post, the installer has a bug. (version 3.2.0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With