MySQL is possibly the single hardest database to port to/from, because it supports nothing.
Added bonus: some versions will segfault if you pass an un-formattable date value.
Postgres, Oracle, MS SQL all support a (very large) common subset of features, so if you avoid stored procedures and db-specific features, you can port among them easily. This is not true for MySQL.