GoAdmio Command Line: installmariadb with /go/installmariadb

/go/installmariadb installs MariaDB on a GoAdmio server, or upgrades an existing installation. It: It installs a fixed default version (12.3) unless you pass another one or the server has a pinned version. It does not install "the latest" version. See Version selection. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Install MariaDB with the default version (12.3), or upgrade the existing installation
/go/installmariadb

Examples

# Install, or upgrade within the pinned or default version
/go/installmariadb

# Install a specific version (removes MariaDB first)
/go/installmariadb 11.4

# Check whether the server has a pinned version
cat /usr/local/goadmio/mariadb.db

# Verify the installation
mariadb --version
systemctl status mariadb

# Verify the hardening
mariadb -e "SELECT User, Host FROM mysql.user;"
mariadb -e "SHOW DATABASES;"

Output

There is no summary or success message. You see the following messages, mixed with the output of dnf or apt.

Message When
MariaDB requires at least 0.5 GB of RAM to install. The server has less than 512 MB of RAM. Exit status 1, nothing is changed.
Upgrading MariaDB... The mariadb command already exists.
A progress bar titled Installing MariaDB <version> New install on AlmaLinux, Rocky, CentOS, Red Hat, or Fedora.
Installing MariaDB <version>... New install on Debian or Ubuntu.

[!WARNING]
The command does not check whether any install step worked. Its exit status is the status of the last SQL statement in the hardening step, not of the installation. Verify the result with mariadb --version and systemctl status mariadb.

See the full reference at /go/installmariadb and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *