I have changed database from postgresql to mysql, but I don't know how to transfer data from one to other.
Does anyone know any command by which I can copy/migrate my database from postgresql to mysql?
I have changed database from postgresql to mysql, but I don't know how to transfer data from one to other.
Does anyone know any command by which I can copy/migrate my database from postgresql to mysql?
Faced the problem a few years ago, and used pg2mysql
EDIT 21 july 2019 : this fork seems a better option (patches, light maintenance)
COPY
commands that are produced by exporting from postgres. –
Piddle Parse error: syntax error, unexpected '&' in pg2mysql.inc.php on line 133
fix it either by removing the &
(pass by reference in function calls) for all errors in the source or easily run php5 pg2mysql_cli.php <inputfilename.sql> <outputfilename.sql> [engine]
in the command line if available –
Motteo You can use the MySQL Workbench which can import from a variety of database types, including Postgres.
Dbeaver is the perfect solution for painless migration, column to column mapping, character encoding and also open source.
© 2022 - 2024 — McMap. All rights reserved.