Skip to content

Service: MariaDB

Jonas Birmé edited this page Sep 27, 2024 · 4 revisions

Getting started

The open source project MariaDB is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. This tutorial walks you through how to setup a MariaDB server in Open Source Cloud.

Prerequisites

  • If you have not already done so, sign up for an OSC account.

Step 1: Setup secrets

Create a service secret for the database root password.

Skärmavbild 2024-09-27 kl  22 31 23

  • rootpassword=guide

The root password to just serve as an example.

Step 2: Create database server

Click on the button "Create dbserver" in the web user interface. Then enter the following values in the create dbserver dialog.

Skärmavbild 2024-09-27 kl  22 33 39

Press the button Create and wait for the instance to be in status Running.

Step 3: Connect to database

Obtain the IP and port on the service instance card.

Skärmavbild 2024-09-27 kl  22 34 39

In this case we have IP 172.232.131.169 and port 10504

To test a connection launch the mysql client with the following options:

% mysql -h 172.232.131.169 -P 10504 -p
Enter password: guide
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.5.5-10.11.8-MariaDB-log Alpine Linux

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Clone this wiki locally