after reboot $ sudo systemctl start mysqld [sudo] password for alarm: Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details. [alarm@raspi ~]$ sudo systemctl status mariadb.service * mariadb.service - MariaDB 10.4.8 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2019-10-19 20:43:35 UTC; 51s ago Docs: man:mysqld(8) https://mariadb.com/kb/en/library/systemd/ Process: 295 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS) Process: 296 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environ> Process: 304 ExecStart=/usr/bin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE) Main PID: 304 (code=exited, status=1/FAILURE) Status: "MariaDB server is down" Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Buffer pool(s) load completed at 191019 20:43:33 Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] Server socket created on IP: '::'. Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Aborting Oct 19 20:43:35 raspi systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE Oct 19 20:43:35 raspi systemd[1]: mariadb.service: Failed with result 'exit-code'. Oct 19 20:43:35 raspi systemd[1]: Failed to start MariaDB 10.4.8 database server. $ sudo journalctl -xe Oct 19 20:43:19 raspi audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd> Oct 19 20:43:20 raspi kernel: audit: type=1131 audit(1571517799.984:27): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" e> Oct 19 20:43:31 raspi sudo[292]: alarm : TTY=pts/0 ; PWD=/home/alarm ; USER=root ; COMMAND=/usr/bin/systemctl start mysqld Oct 19 20:43:31 raspi sudo[292]: pam_unix(sudo:session): session opened for user root by alarm(uid=0) Oct 19 20:43:31 raspi systemd[1]: Starting MariaDB 10.4.8 database server... -- Subject: A start job for unit mariadb.service has begun execution -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- A start job for unit mariadb.service has begun execution. -- -- The job identifier is 304. Oct 19 20:43:32 raspi mysqld[304]: 2019-10-19 20:43:32 0 [Note] /usr/bin/mysqld (mysqld 10.4.8-MariaDB) starting as process 304 ... Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Using Linux native AIO Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Uses event mutexes Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Number of pools: 1 Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Using generic crc32 instructions Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Completed initialization of buffer pool Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be chang> Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: 128 out of 128 rollback segments are active. Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Creating shared tablespace for temporary tables Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait > Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Waiting for purge to start Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: 10.4.8 started; log sequence number 113847; transaction id 9 Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] InnoDB: Buffer pool(s) load completed at 191019 20:43:33 Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [Note] Server socket created on IP: '::'. Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist Oct 19 20:43:33 raspi mysqld[304]: 2019-10-19 20:43:33 0 [ERROR] Aborting Oct 19 20:43:35 raspi systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- An ExecStart= process belonging to unit mariadb.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. Oct 19 20:43:35 raspi systemd[1]: mariadb.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The unit mariadb.service has entered the 'failed' state with result 'exit-code'. Oct 19 20:43:35 raspi systemd[1]: Failed to start MariaDB 10.4.8 database server. -- Subject: A start job for unit mariadb.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- A start job for unit mariadb.service has finished with a failure. -- -- The job identifier is 304 and the job result is failed. Oct 19 20:43:35 raspi audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mariadb comm="systemd" exe="/usr/lib/systemd/systemd" host> Oct 19 20:43:35 raspi kernel: audit: type=1130 audit(1571517815.594:28): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mariadb comm="systemd" exe="/us> Oct 19 20:43:35 raspi sudo[292]: pam_unix(sudo:session): session closed for user root Oct 19 20:43:44 raspi systemd[1]: systemd-hostnamed.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The unit systemd-hostnamed.service has successfully entered the 'dead' state. Oct 19 20:43:44 raspi audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/syst> Oct 19 20:43:44 raspi kernel: audit: type=1131 audit(1571517824.374:29): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd> Oct 19 20:43:49 raspi systemd-resolved[265]: /etc/hosts:4: address 'localhost' is invalid, ignoring: Invalid argument Oct 19 20:44:09 raspi systemd-timesyncd[266]: Synchronized to time server for the first time 192.99.2.8:123 (2.arch.pool.ntp.org). Oct 19 20:44:27 raspi sudo[338]: alarm : TTY=pts/0 ; PWD=/home/alarm ; USER=root ; COMMAND=/usr/bin/systemctl status mariadb.service Oct 19 20:44:27 raspi sudo[338]: pam_unix(sudo:session): session opened for user root by alarm(uid=0) Oct 19 20:45:38 raspi sudo[338]: pam_unix(sudo:session): session closed for user root Oct 19 20:45:54 raspi sudo[341]: alarm : TTY=pts/0 ; PWD=/home/alarm ; USER=root ; COMMAND=/usr/bin/journalctl -xe Oct 19 20:45:54 raspi sudo[341]: pam_unix(sudo:session): session opened for user root by alarm(uid=0)