mariadb.service: Failed to execute command: Permission denied
by Thommen from LinuxQuestions.org on (#5NH2Y)
I restart the database
Code:systemctl restart mariadbI have error:
Code:-- The job identifier is 117108 and the job result is failed.
Aug 19 13:37:06 kaktus systemd[1]: Starting MariaDB 10.3.29 database server...
-- Subject: A start job for unit mariadb.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit mariadb.service has begun execution.
--
-- The job identifier is 117210.
Aug 19 13:37:07 kaktus mysqld[958]: 2021-08-19 13:37:07 0 [Note] /usr/sbin/mysqld (mysqld 10.3.29-MariaDB-0+deb10u1) starting as process 958 ...
Aug 19 13:37:07 kaktus systemd[1034]: mariadb.service: Failed to execute command: Permission denied
Aug 19 13:37:07 kaktus systemd[1034]: mariadb.service: Failed at step EXEC spawning /etc/mysql/debian-start: Permission denied
-- Subject: Process /etc/mysql/debian-start could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /etc/mysql/debian-start could not be executed and failed.
--
-- The error number returned by this process is ERRNO.
Aug 19 13:37:07 kaktus systemd[1]: mariadb.service: Control process exited, code=exited, status=203/EXEC
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPost= process belonging to unit mariadb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 203.
Aug 19 13:37:10 kaktus systemd[1]: mariadb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit mariadb.service has entered the 'failed' state with result 'exit-code'.
Aug 19 13:37:10 kaktus systemd[1]: Failed to start MariaDB 10.3.29 database server.
-- Subject: A start job for unit mariadb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit mariadb.service has finished with a failure.
--
-- The job identifier is 117210 and the job result is failed.I have been upgrading from Debian 9 10. After upgrading, I am having trouble.
What exactly does "Permission denied" mean?
Code:systemctl restart mariadbI have error:
Code:-- The job identifier is 117108 and the job result is failed.
Aug 19 13:37:06 kaktus systemd[1]: Starting MariaDB 10.3.29 database server...
-- Subject: A start job for unit mariadb.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit mariadb.service has begun execution.
--
-- The job identifier is 117210.
Aug 19 13:37:07 kaktus mysqld[958]: 2021-08-19 13:37:07 0 [Note] /usr/sbin/mysqld (mysqld 10.3.29-MariaDB-0+deb10u1) starting as process 958 ...
Aug 19 13:37:07 kaktus systemd[1034]: mariadb.service: Failed to execute command: Permission denied
Aug 19 13:37:07 kaktus systemd[1034]: mariadb.service: Failed at step EXEC spawning /etc/mysql/debian-start: Permission denied
-- Subject: Process /etc/mysql/debian-start could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /etc/mysql/debian-start could not be executed and failed.
--
-- The error number returned by this process is ERRNO.
Aug 19 13:37:07 kaktus systemd[1]: mariadb.service: Control process exited, code=exited, status=203/EXEC
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPost= process belonging to unit mariadb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 203.
Aug 19 13:37:10 kaktus systemd[1]: mariadb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit mariadb.service has entered the 'failed' state with result 'exit-code'.
Aug 19 13:37:10 kaktus systemd[1]: Failed to start MariaDB 10.3.29 database server.
-- Subject: A start job for unit mariadb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit mariadb.service has finished with a failure.
--
-- The job identifier is 117210 and the job result is failed.I have been upgrading from Debian 9 10. After upgrading, I am having trouble.
What exactly does "Permission denied" mean?