| Server IP : 54.250.94.235 / Your IP : 216.73.216.57 Web Server : Apache System : Linux ip-172-26-8-22 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64 User : bitnami ( 1000) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/scripts/mariadb/ |
Upload File : |
#!/bin/bash
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
# shellcheck disable=SC1091
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace # Uncomment this line for debugging purposes
# Load libraries
. /opt/bitnami/scripts/libos.sh
. /opt/bitnami/scripts/libmariadb.sh
# Load MariaDB environment variables
. /opt/bitnami/scripts/mariadb-env.sh
error_code=0
if is_mysql_running; then
BITNAMI_QUIET=1 mysql_stop
if ! retry_while "is_mysql_not_running"; then
error "mariadb could not be stopped"
error_code=1
else
info "mariadb stopped"
fi
else
info "mariadb is not running"
fi
exit "$error_code"