macOS High Sierra

Installing the BRS Core wallet on macOS is simple and can be acomplished with Brew. Brew is a package manager for macOS, you can learn more at their website, brew.sh. The BRS Brew formula will automatically use H2 as your databse. If using MariaDB does not conflict with your main operations, it is recommended to change this to MariaDB after the installation.

Simply copy and paste the follwoing commands into a Terminal window and press enter to run.

 

  • Install Homebrew, skip if you already have Homebrew installed on your machine.
    • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install Java 8, skip if you already have Java 8 installed on your machine.
    • brew cask install homebrew/cask-versions/java8
  • Tap the formula.
    • brew tap nixops/homebrew-burstcoind
  • Install the burstcoin dameon.
    • brew install burstcoind
  • Start the wallet.
    • burstcoind

Changing your database to MariaDB is slightly more involved than the base installation, but still easy, and only needs to be done once.

  • Install MariaDB.
    • brew install mariadb
  • Start the MariaDB server.
    • brew services start mariadb
  • Open the MariaDB session.
    • mysql -uroot
  • Run the following commands one after the other…
    • CREATE DATABASE brs;
    • CREATE USER ‘admin’@‘localhost’ IDENTIFIED BY ‘password’;
    • GRANT ALL PRIVILEGES ON brs.* TO ‘admin’@‘localhost’ IDENTIFIED BY ‘password’;
    • ALTER DATABASE brs CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
    • EXIT

You may encounter an error by simply copy and pasting the above commands. This is most likely becuase the same type of quote is not being correctly copied and pasted. To fix this, after pasting into terminal, delete and manually reenter the single quotes.

  • Open the brs.properties file.
    • sudo nano /usr/local/Cellar/burstcoind/2.2.2/bin/conf/brs.properties
  • Update the database configuration.

replace…

DB.Url=jdbc:h2:./burst_db/burst;DB_CLOSE_ON_EXIT=False
DB.Username=sa
DB.Password=sa

with…

DB.Url=jdbc:mariadb://localhost:3306/brs
DB.Username=admin
DB.Password=password

  • Save and confirm the edited file.
    • CTRL + X –> y –> ENTER
  • Start the wallet.
    • burstcoind