mariadb-secure-installation(1)

mariadb-secure-installation1

Improve mariadb installation security (mariadb-secure-installation is now a symlink to mariadb-secure-installation)

Usage

mariadb-secure-installation

Overview

This program enables you to improve the security of your MariaDB installation in the following ways:

• You can set a password for root accounts.

• You can remove root accounts that are accessible from outside the local host.

• You can remove anonymous-user accounts.

• You can remove the test database, which by default can be accessed by anonymous users.

mariadb-secure-installation can be invoked without arguments:

shell> mariadb-secure-installation

The script will prompt you to determine which actions to perform.

mariadb-secure-installation accepts some options:

• --basedir=dir_name

Base directory.

• --defaults-extra-file=file_name

Additional option file.

• --defaults-file=file_name

Option file.

• --no-defaults

Don't read any defaults file.

Other unrecognized options will be passed on to the server.

Releases

4 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13–Arch

Author

MariaDB Foundation (http://www.mariadb.org/).

From mariadb 13.0.2-2 in Arch Linux 2026-11-01. Also shipped by mariadb-lts. Parsed by carta from the page's man source.