

Log_error line, as in: log_error = /var/log/mariadb/mariadb.log If you don’t find the logs in the default directory, you need toĬheck MariaDB’s configuration. Note: You might need to use sudo to get a listing of the files in that By default MariaDB stores its log files in the If something goes wrong, the best place to start troubleshooting any Programs look in my.cnf to see how they should behave.īasically, the mysql configuration section controls the client, and the mysqld section controls the server. MariaDB is technically a collection of tools that includes the server ( mysqld), the client ( mysql), and some other tools. Those are config groupsĪnd they tell the programs that read the configuration file which parts There are lines in the config file that just contain a word in squareīrackets, like or.

You’ll find details like the location of log files and where the database files Open the my.cnf file and have a look inside.Īny lines starting with # are comments, and they mostly document what The server works down the list until it finds a configuration file. Near the start of the output, find a couple lines that look similar to the following lines: Default options are read from the following files in the given order: Of the configuration information that was set when the server was compiled. That you can send to the server when you launch it. If it’s not there you can use mysqld to look for the configurationįile by running the following command: /usr/libexec/mysqld -help -verbose Find the config filesīy default, you’ll find MariaDB’s configuration file at the following location: /etc/my.cnf Let’s look at MariaDB in a little more detail to tweak itsĬonfiguration and be ready in case something goes wrong. Password, creating a database, and creating a user for the database. Covered a basic MariaDB® server setup on CentOS Linux, including setting the root
