LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mariadb-install-db

initializes the MariaDB data directory and system tables

TLDR

Initialize MariaDB data directory
$ mariadb-install-db
copy
Initialize with specific user
$ mariadb-install-db --user=[mysql]
copy
Initialize with custom data directory
$ mariadb-install-db --datadir=[/var/lib/mysql]
copy
Initialize with specific base directory
$ mariadb-install-db --basedir=[/usr]
copy

SYNOPSIS

mariadb-install-db [options]

DESCRIPTION

mariadb-install-db initializes the MariaDB data directory and system tables. Required before first server start. Creates privilege tables and default databases. Replaces mysqlinstalldb in MariaDB.

PARAMETERS

--user user

User for database files.
--datadir dir
Data directory path.
--basedir dir
MariaDB base directory.
--defaults-file file
Configuration file.
--auth-root-authentication-method method
Root authentication method.
--skip-test-db
Don't create test database.

INSTALL

sudo apt install mariadb-server-core
copy
sudo dnf install mariadb
copy
sudo pacman -S mariadb
copy
sudo apk add mariadb
copy
sudo zypper install mariadb
copy
brew install mariadb
copy
nix profile install nixpkgs#mariadb
copy

SEE ALSO

mariadb(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid