in reply to Looking to convert all my MySQL DB's to postgresql, any experiences with mysql2pgsql?

Before committing potential suicide...

pg_dumpall -c --attribute-inserts > copy_of_mycluster_of-databases-$(date +%F_%H\:%M).sql

if you have oids copy also this objects with the option --oids

To restore simply load the file with something like psql -f copy_of_mycluster_of-databases-*.sql postgres

  • Comment on Re: Looking to convert all my MySQL DB's to postgresql, any experiences with mysql2pgsql?
  • Select or Download Code