Instructions for running the `mariadb-install-db` script on Unix-like systems to initialize the MariaDB data directory and system tables.
mariadb-install-db initializes the MariaDB data directory and creates the system tables in the mysql database, if they do not exist. MariaDB uses these tables to manage privileges, roles, and plugins. It also uses them to provide the data for the help command in the mariadb client.
mariadb-install-db works by starting MariaDB Server's mysqld process in --bootstrap mode and sending commands to create the system tables and their content.
There is a version specifically for Windows, mysql_install_db.exe.
To invoke mariadb-install-db, use the following syntax:
For the options supported by mariadb-install-db, see mariadb-install-db: Options.
For the option groups read by , see .
See for information on the installation process.
See for information on how to troubleshoot the installation process.
The Windows version of mariadb-install-db:
This page is licensed: CC BY-SA / Gnu FDL
mariadb-install-db --user=mysql