Convert PostgreSQL dump file to MySQL?

Do I want to convert a PostgreSQL dump file that I received to a MYSQL dump file or even sql text to be generated?

+6
source share
4 answers

If you are installing PostgreSQL client programs, you can use "pg_restore" to convert the dump file to an SQL script without having to have a PostgreSQL instance. Just do pg_restore dumpfile.pg and it will return the SQL recovery file to standard output.

+12
source

If you have PostgreSQL installed on your terminal and your latest.dump file, you just need to convert it to latest.sql as follows:

$ pg_restore latest.dump > latest.sql

+5
source

A google search provided a link to this discussion . He looks encouraging, and perhaps this will help.

NTN

+1
source

Source: https://habr.com/ru/post/905221/


All Articles