Install, configure, manage, validate, and inspect MariaDB
Source: target-root/usr/local/libexec/solidgroundux/manage-mariadb.sh
Install, configure, manage, validate, and inspect MariaDB
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_db_default_client_cidr | Determine the subnet of the default-route IPv4 interface. | — | — |
_db_check_client_cidr | Validate a single IPv4 address or a routed CIDR. | — | — |
_db_account_host | Convert CIDR to MariaDB's IPv4/netmask host format. | — | — |
_db_transition | Framework countdown before installation work. | — | — |
_db_confirm | Ask for explicit installation approval. | — | — |
_db_failure_pause | Keep failures visible before the console redraws. | — | — |
_db_suggest_pool | Suggest a quarter of physical RAM in megabytes. | — | — |
_db_require_ubuntu | Require supported platform before package writes. | — | — |
_db_installed | Check package state. | — | — |
_db_run_write | Honor SolidGroundUX dryrun before changing host. | — | — |
_db_restart_active | Only restart when currently active. | — | — |
_db_check_port | Validate TCP port argument. | — | — |
_db_service | Start, stop, restart or inspect the MariaDB systemd service as requested. | — | — |
_db_firewall | Open the configured TCP port (not the database auth rules). | — | — |
_db_storage | No automatic migration of populated database files. | — | — |
_db_storage_check | Reject unsafe filesystem roots, unmounted fstab targets and existing data. | - $1: Filesystem path to inspect. | — |
_db_package_datadir | Discover the initialized package directory rather than assuming its path. | — | — |
_db_ensure_initialized | Initialize only an empty and stopped package data directory. | — | — |
_db_apparmor_profile | Discover the distro-installed MariaDB AppArmor profile. | — | — |
_db_apparmor_prepare | Allow MariaDB to access a custom datadir in its active profile. | - $1: Data directory that requires AppArmor access. | — |
_db_apparmor_known_denial | Identify the tested Ubuntu mknod/c AppArmor denial since a start attempt. | - $1: Timestamp from which AppArmor kernel denials are inspected. | — |
_db_apparmor_recover | Offer explicit, profile-only complain mode as a tested compatibility workaround. | - $1: AppArmor profile path. | — |
_db_custom_datadir | Relocate only freshly initialized package data to validated destination. | - $1: Selected MariaDB data directory. | — |
_db_fresh_install | Initialize a fresh MariaDB service using an arbitrary validated directory. | — | — |
_db_repository | Stock Ubuntu repos, no external keys or pinned versions. | — | — |
_db_install | Install engine using the selected Ubuntu packages. | — | — |
_db_tools | Install standard engine command-line client. | — | — |
_db_logs | Display recent service journal without another management UI. | — | — |
_db_backup | Clarify scope without implementing unsafe restore operations. | — | — |
_db_existing_install | Offer inspection or reconfiguration options for an existing MariaDB installation. | — | — |
_db_prepare | Mirror SQL Server's tracked four-step preparation. | — | — |
_db_option | Read a selected MariaDB server setting from the active service or configuration. | - $1: Configuration or response-field key. | — |
_db_port | Invoke the port action through the module manager. | — | — |
_db_set | Write a MariaDB configuration setting through the selected configuration mechanism. | - $1: Configuration or response-field key. | — |
_db_configure | Collect and apply MariaDB port, bind address and buffer-pool settings. | — | — |
_db_storage_detail | Display the configured database data directory. | — | — |
_db_network | Review or configure the MariaDB TCP port and bind address. | — | — |
_db_memory | Review or configure the MariaDB InnoDB buffer-pool size. | — | — |
_db_access | Configure one workstation-scoped DBeaver administrator. | — | — |
_db_status | Display installed MariaDB package, service and configuration status. | — | — |
_db_validate | Check MariaDB installation and service prerequisites and report validation results. | — | — |
_run_action | Execute management action and retain its exit status. | - $1: Management action to execute. | — |
Description
Install, configure, manage, validate, and inspect MariaDB.
Usage
Run the executable from its shell command (or installed wrapper):
manage-mariadb --action status
manage-mariadb --dryrun --action storage
Script-specific options:
--action NAME,-a: Management action (supported actions:prepare,repository,install,configure,storage,network,memory,access,service,firewall,tools,validate,status,logs,backup).
MariaDB-specific operations
SolidGroundUX writes a dedicated override rather than patching distro files.
