Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a large Mysql database containing tens of tables which I need to convert to Postgresql. I have tried a couple of ancient Perl scripts which I found here and there but none of them did the job correctly. So wondering if there is any free and efficient tool/script which you have tried and actually does the conversion with the least hassle.

Thanks

share|improve this question

2 Answers 2

Did you try

mysqldump --compatible=postgresql yourdatabase >dump.sql
share|improve this answer

The PostgreSQL wiki lists some resources. You've probably found some or all of the Perl scripts listed, but there are some Ruby and Python options that hopefully work. It looks like there is a wizard in the Postgres Plus Solution Pack from EnterpriseDB, too (guide).

If none of that sounds appealing, how about DBConvert? Or maybe the SQLMaestro PostgreSQL data wizard? They're not free, but if none of the free tools work for you...

share|improve this answer
    
Yep I tried most of the links in the PS wiki list, with no luck. As for EDB, to be honest I am worried about invisible strings attaches to so-called 'Pros' and 'solutions'. –  alfish Jan 3 '12 at 3:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.