I second MariaDB. A mysqldump of the MySQL database can be directly streamed in to the Mariabd desktop client (whose name is "mysql"
) And you'll never again have to deal with Oracle salespeople or surprise license audits.
As i mentioned elsewhere, mariadb is part of the standard package repository set in most Linux distros, should be available via MacOS brew and is downloadable for Windows.
If you actually want to migrate to PostgreSQL, a mysqldump would also be the first possible step, but there are 2 caveats. First, the "SQL Standard" isn't 100% standard, so you might have to iron out some quirks. Secondly, one or the other of those databases (I forget which) likes to dump in a special bulk-load SQL insert which is not standard SQL at all and will likely give the receiver indigestion.
An alternate approach is to use an ETL utility such as Pentaho DI (Kettle), which can extract, transform and load data from/to any
JDBC source as well as a large number of alternative places, including spreadsheets, text files, Amazon S3 and more. If you have an Oracle (non-MySQL) database and the Oracle sales team gets too annoying, you can use this to move your Oracle database to PostgreSQL, which is in many ways quite similar to Oracle, although in their case it's more of from a common distant ancestor than PostgreSQL being an actual clone or fork of Oracle.