In the order of your code execute
grep -i error /var/log/mariadb/mariadb.log | tail
root@POS-SERVER:/home/jimmy# grep -i error /var/log/mariadb/mariadb.log | tail
grep: /var/log/mariadb/mariadb.log: No such file or directory
--------------------------------------------------------------------------------------
InnoDB: Error: log file ./ib_logfile0 is of different size 0 78643200 bytes
root@POS-SERVER:/home/jimmy# grep -i error /var/log/mariadb/mariadb.log | tail
grep: /var/log/mariadb/mariadb.log: No such file or directory
root@POS-SERVER:/home/jimmy# InnoDB: Error: log file ./ib_logfile0 is of different size 0 78643200 bytes
InnoDB:: command not found
---------------------------------------------------------------------------------------
grep -i "InnoDB: Log" /var/log/mariadb/mariadb.log | tail
root@POS-SERVER:/home/jimmy# grep -i "InnoDB: Log" /var/log/mariadb/mariadb.log | tail
grep: /var/log/mariadb/mariadb.log: No such file or directory
----------------------------------------------------------------------------------------------
190319 16:17:05 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
root@POS-SERVER:/home/jimmy# 190319 16:17:05 InnoDB: Log file ./ib_logfile0 did not exist: new to be created 190319: command not found
*** A ib_logfile0 file created in /tmp but it is 100.7mb
Add innodb and restart
root@POS-SERVER:/home/jimmy# sudo systemctl start mariadb
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
----------------------------------------------------------------------------------------------
root@POS-SERVER:/home/jimmy# status mariadb,service
● mariadb.service - MariaDB 10.6.5 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: exit-code) since Tue 2021-11-30 10:37:38 EST; 2min 1s ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 5072 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exite>
Process: 5084 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exit>
Process: 5093 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/>
Process: 5102 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION>
Main PID: 5102 (code=exited, status=1/FAILURE)
Nov 30 10:37:38 POS-SERVER systemd[1]: Starting MariaDB 10.6.5 database server...
Nov 30 10:37:38 POS-SERVER sh[5099]: error: Found option without preceding group in config file: /etc/>
Nov 30 10:37:38 POS-SERVER sh[5099]: Fatal error in defaults handling. Program aborted
Nov 30 10:37:38 POS-SERVER mariadbd[5102]: error: Found option without preceding group in config file:>
Nov 30 10:37:38 POS-SERVER mariadbd[5102]: Fatal error in defaults handling. Program aborted
Nov 30 10:37:38 POS-SERVER systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAI>
Nov 30 10:37:38 POS-SERVER systemd[1]: mariadb.service: Failed with result 'exit-code'.
Nov 30 10:37:38 POS-SERVER systemd[1]: Failed to start MariaDB 10.6.5 database server.
~
~
lines 1-21/21 (END)
--------------------------------------------------------------------------------------------------------------
root@POS-SERVER:/home/jimmy# journalctl -xe
Nov 30 10:43:06 POS-SERVER zmfilter[5426]: ERR [Error reconnecting to db: errst>
Nov 30 10:43:06 POS-SERVER zmfilter[5426]: ERR [Error reconnecting to db: errst>
Nov 30 10:43:06 POS-SERVER zmfilter[5425]: ERR [Error reconnecting to db: errst>
Nov 30 10:43:06 POS-SERVER zmfilter[5425]: ERR [Error reconnecting to db: errst>
Nov 30 10:43:06 POS-SERVER zmdc[1072]: ERR ['zmfilter.pl --filter_id=1 --daemon>
Nov 30 10:43:06 POS-SERVER zmdc[1072]: ERR ['zmfilter.pl --filter_id=2 --daemon>
Nov 30 10:43:07 POS-SERVER zmwatch[1138]: ERR [Error reconnecting to db: errstr>
Nov 30 10:43:09 POS-SERVER zmc_m1[1122]: ERR [zmc_m1] [Can't run query INSERT I>
( 0, 100, 'Bulk', from_unixtime( 16382>
Nov 30 10:43:09 POS-SERVER zmc_m1[1122]: ERR [zmc_m1] [Can't run query INSERT I>
(0,100,1,1,0,0,0,0,0,0,0,0,0,0,0,0): C>
Nov 30 10:43:09 POS-SERVER zmc_m1[1122]: ERR [zmc_m1] [Can't run query UPDATE E>
Nov 30 10:43:13 POS-SERVER sudo[5446]: jimmy : TTY=pts/0 ; PWD=/home/jimmy ;>
Nov 30 10:43:13 POS-SERVER sudo[5446]: pam_unix(sudo:session): session opened f>
Nov 30 10:43:13 POS-SERVER su[5447]: (to root) jimmy on pts/0
Nov 30 10:43:13 POS-SERVER su[5447]: pam_unix(su:session): session opened for u>
Nov 30 10:43:17 POS-SERVER zmwatch[1138]: ERR [Error reconnecting to db: errstr>
Nov 30 10:43:18 POS-SERVER zmstats[1174]: ERR [Error reconnecting to db: errstr>
Nov 30 10:43:23 POS-SERVER zmc_m1[1122]: ERR [zmc_m1] [Can't run query INSERT I>
( 0, 200, 'Bulk', from_unixtime( 16382>
Nov 30 10:43:23 POS-SERVER zmc_m1[1122]: ERR [zmc_m1] [Can't run query INSERT I>
(0,200,1,1,0,0,0,0,0,0,0,0,0,0,0,0): C>
Nov 30 10:43:23 POS-SERVER zmc_m1[1122]: ERR [zmc_m1] [Can't run query UPDATE E>
lines 1253-1275/1275 (END)