Skip to content

Database

The database module is used to manage MySQL, MariaDB, PostgreSQL, and other databases. It supports creating databases, managing users, and configuring database servers.

Prerequisites

Before using the database feature, you need to install database software first:

  1. Go to Applications > Native Applications
  2. Install Percona, MySQL, MariaDB, or PostgreSQL

Feature Overview

The database module is divided into three parts:

FeatureDescription
DatabaseCreate and manage databases
UserManage database users and permissions
ServerManage database server connections

Database List

Supported Databases

DatabaseDescription
PerconaHigh-performance fork of MySQL, suitable for high-load scenarios
MySQLThe world's most popular open-source relational database
MariaDBOpen-source fork of MySQL, fully compatible with MySQL
PostgreSQLPowerful open-source object-relational database

Quick Start

Create Database

  1. Go to the Database page
  2. Click Create Database
  3. Select database type and server
  4. Enter database name
  5. Choose whether to create a user and set permissions
  6. Click Create

Create User

  1. Switch to the User tab
  2. Click Create User
  3. Enter username and password
  4. Set access permissions
  5. Click Create

Connect to Database

Local Connection

Host: 127.0.0.1 or localhost
Port: Percona/MySQL/MariaDB 3306, PostgreSQL 5432
Socket: Percona/MySQL/MariaDB /tmp/mysql.sock, PostgreSQL /tmp/.s.PGSQL.5432

Remote Connection

To connect to the database remotely:

  1. Open the database port in the firewall
  2. Create a user that allows remote access (set host to %)

Security Notice

It is not recommended to expose database ports to the public network. For remote management, it is recommended to use SSH tunnels or VPN.

Next Steps