You can install Relational Migrator on a single Ubuntu or Debian machine. This installation method uses default settings and binds Relational Migrator to a single IP and port.
About This Task
Relational Migrator uses the following file locations on Ubuntu and Debian Linux:
Configuration file
~/.mongodb/relational-migrator/user.properties
Downloaded JDBC Drivers
~/.mongodb/relational-migrator/Drivers
Log files
~/.mongodb/relational-migrator/migrator.log
Steps
Download the latest
.tar.gz
binary from the release page.Install Relational Migrator.
tar -xvzf relational-migrator-<version_number>-linux-amd64.tar.gz -C /opt Note
You can extract the installation to a location other than the
/opt/
directory.(Optional) To connect to Oracle or MySQL drivers, download and place the drivers into your Relational Migrator directory.
To download and install MySQL, Oracle or DB2 drivers, see the following:
Copy the driver files to
~/.mongodb/relational-migrator/Drivers
.To copy the driver, use the following example:
curl https://download.oracle.com/otn-pub/otn_software/jdbc/216/ojdbc11.jar -O -L -b -o
Change the directory to the Relational Migrator
/bin
location and start the application.cd /opt/mongodb-relational-migrator-<version_number>/bin ./mongodb-relational-migrator Note
If you start Relational Migrator before you copy the driver files into the
Drivers
directory, you must restart the application to use the MySQL or Oracle drivers.