[root@tesrv.local ~]# vi /etc/my.cnf
|
[root@tesrv.local ~]# my_print_defaults mysqld
|
--datadir=/var/lib/mysql
|
--socket=/var/lib/mysql/mysql.sock
|
--symbolic-links=0
|
--innodb_buffer_pool=4G
|
[root@tesrv.local ~]# systemctl restart 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@tesrv.local ~]# systemctl status mariadb
|
● mariadb.service - MariaDB database server
|
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
|
Active: failed (Result: exit-code) since Fri 2020-03-20 11:23:30 CET; 1min 12s ago
|
Process: 15075 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
|
Process: 15074 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
|
Process: 15039 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
|
Main PID: 15074 (code=exited, status=0/SUCCESS)
|
|
Mar 20 11:23:29 tesrv.local systemd[1]: Stopped MariaDB database server.
|
Mar 20 11:23:29 tesrv.local systemd[1]: Starting MariaDB database server...
|
Mar 20 11:23:29 tesrv.local mariadb-prepare-db-dir[15039]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
|
Mar 20 11:23:29 tesrv.local mysqld_safe[15074]: 200320 11:23:29 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
|
Mar 20 11:23:30 tesrv.local mysqld_safe[15074]: 200320 11:23:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
|
Mar 20 11:23:30 tesrv.local systemd[1]: mariadb.service: control process exited, code=exited status=1
|
Mar 20 11:23:30 tesrv.local systemd[1]: Failed to start MariaDB database server.
|
Mar 20 11:23:30 tesrv.local systemd[1]: Unit mariadb.service entered failed state.
|
Mar 20 11:23:30 tesrv.local systemd[1]: mariadb.service failed.
|
[root@tesrv.local ~]# journalctl -xe
|
|
Mar 20 11:23:27 tesrv.local polkitd[4495]: Registered Authentication Agent for unix-process:15022:694777 (system bus name :1.67 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
|
|
Mar 20 11:23:27 tesrv.local systemd[1]: Stopping MariaDB database server...
|
-- Subject: Unit mariadb.service has begun shutting down
|
-- Defined-By: systemd
|
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
--
|
-- Unit mariadb.service has begun shutting down.
|
Mar 20 11:23:29 tesrv.local systemd[1]: Stopped MariaDB database server.
|
-- Subject: Unit mariadb.service has finished shutting down
|
-- Defined-By: systemd
|
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
--
|
-- Unit mariadb.service has finished shutting down.
|
Mar 20 11:23:29 tesrv.local systemd[1]: Starting MariaDB database server...
|
-- Subject: Unit mariadb.service has begun start-up
|
-- Defined-By: systemd
|
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
--
|
-- Unit mariadb.service has begun starting up.
|
Mar 20 11:23:29 tesrv.local mariadb-prepare-db-dir[15039]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
|
Mar 20 11:23:29 tesrv.local mariadb-prepare-db-dir[15039]: If this is not the case, make sure the /var/lib/mysql is empty before running mariadb-prepare-db-dir.
|
Mar 20 11:23:29 tesrv.local mysqld_safe[15074]: 200320 11:23:29 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
|
Mar 20 11:23:30 tesrv.local mysqld_safe[15074]: 200320 11:23:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
|
Mar 20 11:23:30 tesrv.local systemd[1]: mariadb.service: control process exited, code=exited status=1
|
Mar 20 11:23:30 tesrv.local systemd[1]: Failed to start MariaDB database server.
|
-- Subject: Unit mariadb.service has failed
|
-- Defined-By: systemd
|
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
|
--
|
-- Unit mariadb.service has failed.
|
--
|
-- The result is failed.
|
Mar 20 11:23:30 tesrv.local systemd[1]: Unit mariadb.service entered failed state.
|
Mar 20 11:23:30 tesrv.local systemd[1]: mariadb.service failed.
|
Mar 20 11:23:30 tesrv.local polkitd[4495]: Unregistered Authentication Agent for unix-process:15022:694777 (system bus name :1.67, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
|