Migrating from MySQL/Oracle on macOS
The brew install on macOS does not support installing ora2pg, which is required for MySQL/Oracle database schema export. If you are planning to migrate MySQL or Oracle source databases on macOS, install yb-voyager using Docker instead.Perform the following steps to install yb-voyager using brew for macOS:
-
Tap the
yugabyteHomebrew repository using the following command:brew tap yugabyte/tapThe repository contains the formula to build and install
yb-voyageron your macOS device.Note that the tap
yugabyte/yugabytedbhas been updated toyugabyte/tap. If you have previously installed yb-voyager using the tapyugabyte/yugabytedb, untap the entry usingbrew untap yugabyte/yugabytedb, and then tap using the preceding command. -
Install the
postgresql@16package to accesspg_dumporpg_restoreusing the following command:brew install postgresql@16 -
Install
yb-voyagerand its dependencies using the following command:brew install yb-voyagerInstall a specific version of
yb-voyagerusing the following command:brew install yb-voyager@<VERSION> -
Check that yb-voyager is installed using the following command:
yb-voyager version