GoAdmio Command Line: my with /go/my

/go/my writes a new MariaDB configuration file from scratch and restarts MariaDB so it takes effect. It chooses values from: Running it again re-tunes the settings to the server's current state. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Back up the current file, then regenerate the configuration and restart MariaDB
cp /etc/my.cnf /etc/my.cnf.bak-$(date +%F)
/go/my

Examples

# Back up the current configuration first
cp /etc/my.cnf /etc/my.cnf.bak-$(date +%F)

# Regenerate the configuration, with query logging off
/go/my

# Regenerate with the slow query log and general query log on
/go/my --log

# Regenerate the configuration for GoAdmio's separate instance (no restart)
/go/my system

# Check the tier and the main values that were chosen
grep -E 'RAM:|innodb_buffer_pool_size|max_connections|key_buffer_size' /etc/my.cnf

# Confirm MariaDB is using them
mariadb -e "SHOW VARIABLES LIKE 'innodb_buffer_pool_size';"

# See the query logs that earlier runs moved aside
ls /var/log/go/mysql/

Output

Nothing is printed on success. The only messages are:

Message Meaning
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. The wording is copied from installmariadb.
Instance (<name>) already running. Another command holds the lock file (see Lock). Exit status 1, nothing is changed.

When installmariadb runs this command, it hides the output, so these messages don’t appear there.

See the full reference at /go/my 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 *