Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download, install and start MariaDB on your computer. SeeĀ https://downloads.mariadb.org/.

    Info

    You can install MariaDB standalone or as a galera cluster for high availability. Database clustering is independent of WSO2 product clustering. For more information on setting up a galera cluster, see the MariaDB Galera Cluster documentation.

    Info

    For instructions on installing MariaDB on MAC OS, go to Homebrew.

  2. Log in to MariaDB as the root user (or any other user with database creation privileges).
    mysql -u root -p
  3. Enter the password when prompted.

    Info

    In most systems, there is no default root password. Press the Enter key without typing anything if you have not changed the default root password.

  4. In the MySQL command prompt, create the database using the following command:
    create database regdb;
  5. Give authorization of the database to the regadmin user as follows:
    GRANT ALL ON regdb.* TO regadmin@localhost IDENTIFIED BY "regadmin";
  6. Once you have finalized the permissions, reload all the privileges by executing the following command:
    FLUSH PRIVILEGES;
  7. Log out from the MySQL prompt by executing the following command:
    quit;

...