2
0
mirror of https://github.com/acepanel/acepanel.github.io.git synced 2026-02-04 19:27:17 +08:00
Files
acepanel.github.io/en/advanced/database.md
2026-01-27 01:26:41 +08:00

2.5 KiB

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:

Feature Description
Database Create and manage databases
User Manage database users and permissions
Server Manage database server connections

Database List

Supported Databases

Database Description
Percona High-performance fork of MySQL, suitable for high-load scenarios
MySQL The world's most popular open-source relational database
MariaDB Open-source fork of MySQL, fully compatible with MySQL
PostgreSQL Powerful 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 %)

::: warning 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