The output from
systemctl status mysql.service mariadb.service mariadb.target
is
Code:
● mariadb.service - MySQL server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2019-03-21 15:50:58 CET; 1h 21min ago
Process: 22022 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade (code=exited, status=1/FAILURE)
Process: 22008 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install (code=exited, status=0/SUCCESS)
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: Stale files from previous upgrade detected, cleaned them up
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: Running protected MySQL...
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: Waiting for MySQL to start
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: 2019-03-21 15:49:57 139628729120960 [Note] /usr/sbin/mysqld (mysqld 10.2.22-MariaDB-log) starting as process 22048 ...
mrt 21 15:50:58 DGS-LDBS-03 mysql-systemd-helper[22022]: MySQL is still dead
mrt 21 15:50:58 DGS-LDBS-03 mysql-systemd-helper[22022]: MySQL didn't start, can't continue
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: mariadb.service: Control process exited, code=exited status=1
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: Failed to start MySQL server.
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: mariadb.service: Unit entered failed state.
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: mariadb.service: Failed with result 'exit-code'.
● mariadb.service - MySQL server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2019-03-21 15:50:58 CET; 1h 21min ago
Process: 22022 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade (code=exited, status=1/FAILURE)
Process: 22008 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install (code=exited, status=0/SUCCESS)
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: Stale files from previous upgrade detected, cleaned them up
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: Running protected MySQL...
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: Waiting for MySQL to start
mrt 21 15:49:57 DGS-LDBS-03 mysql-systemd-helper[22022]: 2019-03-21 15:49:57 139628729120960 [Note] /usr/sbin/mysqld (mysqld 10.2.22-MariaDB-log) starting as process 22048 ...
mrt 21 15:50:58 DGS-LDBS-03 mysql-systemd-helper[22022]: MySQL is still dead
mrt 21 15:50:58 DGS-LDBS-03 mysql-systemd-helper[22022]: MySQL didn't start, can't continue
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: mariadb.service: Control process exited, code=exited status=1
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: Failed to start MySQL server.
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: mariadb.service: Unit entered failed state.
mrt 21 15:50:58 DGS-LDBS-03 systemd[1]: mariadb.service: Failed with result 'exit-code'.
● mariadb.target - MySQL target allowing to control multi setup
Loaded: loaded (/usr/lib/systemd/system/mariadb.target; static; vendor preset: disabled)
Active: inactive (dead)
ls -l
/etc/systemd/system/multi-user.target.wants/
gives the output as in your post.
The command
/usr/sbin/mysqld --defaults-file=/etc/my.cnf --user=mysql
starts PID #24517 without any errors that I can see
, apart from the minor issue that it doesn't return to bash (I didn't put & after the command). But PID#24517 is running, and has the name mysqld.
The command mysql starts a mysql client and I can access my data.
But
systemctl status mysql.service mariadb.service mariadb.target
produces the same output as above.
I hope this information can help you to help me further.
(The machine has no GUI.)
And
/usr/lib/systemd/system/mariadb.service
(dated July 10, 2018) contains
Code:
# It's not recommended to modify this unit file because your changes
# would be overwritten during the package update.
#
# However, there are 2 methods how to customize this unit file:
#
# 1) Copy this unit file from /usr/lib/systemd/system to
# /etc/systemd/system and modify the chosen settings.
#
# 2) Create a directory named mariadb.service.d/ within /etc/systemd/system
# and place a drop-in file name.conf there that only changes the specific
# settings one is interested in.
#
# see systemd.unit(5) for details
#
# Example - increasing of the TimeoutSec= limit
# mkdir /etc/systemd/system/mariadb.service.d
# cat > /etc/systemd/system/mariadb.service.d/timeout.conf << EOF
# [Service]
# TimeoutSec=600
# EOF
[Unit]
Description=MySQL server
Wants=basic.target
Conflicts=mariadb.target
After=basic.target network.target
[Service]
Restart=on-abort
Type=notify
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade
ExecStart=/usr/lib/mysql/mysql-systemd-helper start
# Configures the time to wait for start-up/stop
TimeoutSec=300
[Install]
WantedBy=multi-user.target
Alias=mysql.service
Bookmarks