Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-23243

MariaDB Not Started in CentOS8 with service command

    XMLWordPrintable

    Details

      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]#
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            SEONGHWAN_KIM SEONGHWAN KIM
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration