Understand the default MariaDB configuration

The grant tables define the initial MariaDB user accounts and their access privileges. The default configuration consists of two user accounts:

  • root: This user has all privileges including remote access to the database.
  • repl: Has “Replication slave” privileges which enable replication slaves to read binary log events from the master.

MariaDB version

In order to see which MariaDB version your system is running, execute the following command:

$ mysqld --version

MariaDB configuration file

The MariaDB configuration file is located at /opt/bitnami/mariadb/conf/my.cnf.

MariaDB socket

On Unix, MariaDB clients can connect to the server in the local machine using an Unix socket file at /opt/bitnami/mariadb/tmp/mysql.sock.

MariaDB port

The default port for MariaDB is 3306.

MariaDB Process Identification Number

The .pid file allows other programs to find out the PID (Process Identification Number) of a running script. Find it at /opt/bitnami/mariadb/tmp/

MariaDB log file

The log-error file contains information indicating when MariaDB was started and stopped and also any critical errors that occur while the server is running. If MariaDB notices a table that needs to be automatically checked or repaired, it writes a message to the error log. Find it at /opt/bitnami/mariadb/logs/mysqld.log.

Last modification September 5, 2018