[MDEV-23243] MariaDB Not Started in CentOS8 with service command Created: 2020-07-21  Updated: 2020-10-19  Resolved: 2020-10-19

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.5.4
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: SEONGHWAN KIM Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: need_feedback, startup
Environment:

CentOS 8



 Description   

Hi, I installed Mariadb 10.5.4.
First installed CentOS 7. =>working good.
Second installed CentOS 8. => Not working.

Below is CentOS 8's systemctl log.
I installed CentOS7 & 8 same command, but working differently.
Why is that happened???

[root@test3 mariadb]# systemctl start mariadb 
[root@test3 mariadb]# 
[root@test3 mariadb]# systemctl status mariadb
● mariadb.service - LSB: start and stop MariaDB
   Loaded: loaded (/etc/rc.d/init.d/mariadb; generated)
   Active: active (exited) since Tue 2020-07-21 00:10:04 EDT; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6953 ExecStart=/etc/rc.d/init.d/mariadb start (code=exited, status=0/SUCCESS)
 
 7월 21 00:10:04 test3 systemd[1]: Starting LSB: start and stop MariaDB...
 7월 21 00:10:04 test3 mariadb[6953]: /etc/rc.d/init.d/mariadb: line 211: my_print_defaults: command not found
 7월 21 00:10:04 test3 mariadb[6953]: /etc/rc.d/init.d/mariadb: line 303: cd: /MARIADB/mariadb: 디렉터리가 아닙니다
 7월 21 00:10:04 test3 mariadb[6953]: Starting MariaDB ERROR! Couldn't find MariaDB server (/MARIADB/mariadb/bin/mysqld_safe)
 7월 21 00:10:04 test3 systemd[1]: Started LSB: start and stop MariaDB.
[root@test3 mariadb]# 
[root@test3 mariadb]# systemctl stop mariadb  
[root@test3 mariadb]# systemctl status mariadb
● mariadb.service - LSB: start and stop MariaDB
   Loaded: loaded (/etc/rc.d/init.d/mariadb; generated)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)
 
 7월 21 09:09:32 test3 systemd[1]: Stopped LSB: start and stop MariaDB.
 7월 21 00:10:04 test3 systemd[1]: Starting LSB: start and stop MariaDB...
 7월 21 00:10:04 test3 mariadb[6953]: /etc/rc.d/init.d/mariadb: line 211: my_print_defaults: command not found
 7월 21 00:10:04 test3 mariadb[6953]: /etc/rc.d/init.d/mariadb: line 303: cd: /MARIADB/mariadb: 디렉터리가 아닙니다
 7월 21 00:10:04 test3 mariadb[6953]: Starting MariaDB ERROR! Couldn't find MariaDB server (/MARIADB/mariadb/bin/mysqld_safe)
 7월 21 00:10:04 test3 systemd[1]: Started LSB: start and stop MariaDB.
 7월 21 00:10:25 test3 systemd[1]: Stopping LSB: start and stop MariaDB...
 7월 21 00:10:25 test3 mariadb[6972]: /etc/rc.d/init.d/mariadb: line 211: my_print_defaults: command not found
 7월 21 00:10:25 test3 mariadb[6972]:  ERROR! MariaDB server PID file could not be found!
 7월 21 00:10:25 test3 systemd[1]: Stopped LSB: start and stop MariaDB.
[root@test3 mariadb]#



 Comments   
Comment by Daniel Black [ 2020-07-21 ]

What installation steps did you take?

Is a dnf based install package https://downloads.mariadb.org/mariadb/repositories/#distro=CentOS&distro_release=centos8-amd64--centos8&mirror=ossplanet&version=10.5 and using systemd service files rather than depreciated on Centos8 sysv /etc/rc.d/init.d/mariadb / mysqld_safe?

Generated at Thu Feb 08 09:20:57 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.