Skip to content

Storage

Justin_SGD edited this page Apr 29, 2023 · 5 revisions

Storage Setup

The JuByteCase plugin offers support for two different database systems:

  • H2Portable (built-in lightweight SQL database)
  • MySQL/MariaDB

The choice of the database system is yours to make. Here are the instructions for setting up each of the supported databases.

H2Portable

If you choose to use H2Portable, you don't need to set up a separate database server. Here's how to configure the plugin:

  1. Open the database.yml file located in the plugin directory.
  2. Set the dialectName to 'H2Portable'.
  3. Set the DatabaseName to the desired name for your database (e.g. 'JuByteCase').
  4. Save the file.

Your JuByteCase plugin is now configured to use H2Portable database.

MySQL/MariaDB

If you choose to use MySQL or MariaDB, you will need to set up a separate database server. Here's how to configure the plugin:

  1. Create a new database and user in your MySQL/MariaDB server.
  2. Grant the user the necessary privileges to access the database.
  3. Open the database.yml file located in the plugin directory.
  4. Set the dialectName to 'MySQL'.
  5. Set the DatabaseName to the name of the database you created in step 1.
  6. Set the Host, Port, User, and Password to the corresponding values for your database.
  7. Save the file.

Your JuByteCase plugin is now configured to use MySQL/MariaDB database.

Clone this wiki locally