-1

I'm installing Moodle in an Amazon EC2 instance. Currently, there is a backup in from PostgreSQL 7.3 which I already migrated to PostgreSQL 9.1. However, I need convert this database to MySQL 5.5.12 to use Amazon RDS.

Are there any tools to do this?

I'm using pg2mysql but maybe there is a better solution?

5
  • Any particular problems you're having with pg2mysql? Commented Dec 15, 2011 at 18:15
  • possible duplicate of How do I migrate easily from MySQL to PostgreSQL? Commented Dec 15, 2011 at 18:23
  • @derobert the problem with pg2mysql is the size of files from pg_dump Commented Dec 15, 2011 at 18:27
  • 1
    Please edit that into the question, being as specific as possible (e.g., "the pg_dump file is 2TB. pg2mysql doesn't seem able to handle this, crashing with a (something) exception / has been working on it for 3 days and isn't done / etc."). The edit link is located under the tags. Commented Dec 15, 2011 at 18:30
  • Is there a reason you cannot use EC2 with postgresql? RDS isn't much more than a totally vanilla MySQL server. Commented Dec 15, 2011 at 18:49

2 Answers 2

2

I think the accepted answer in the question How do I migrate easily from MySQL to PostgreSQL? is applicable in this case: either automated tools like pg2mysql are sufficient, or your schema is complicated enough that you will need to migrate manually.

Sign up to request clarification or add additional context in comments.

Comments

1

Finally I use pg2mysql for the schema and this script in python for the data:

https://gist.github.com/1483322

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.