The reason for the failure will almost certainly be written in the Error Log and, if you are starting MariaDB manually, to the console. By default, the error log is named host-name.err and is written to the data directory.
- On CentOS = /var/lib/mysql/server-name.err
- C:\Program Files\MySQL\MySQL Server x.x\data (x.x refers to the version number)
In most cases you should be able to find out the place of the error file by doing:
mysqld --help --verbose | grep 'log-error' | tail -1 mysqld --help --verbose | grep 'datadir' | tail -1