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

Both CentOS service names mysql and mariadb exist ?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.9
    • Fix Version/s: 10.1.10
    • Component/s: Platform RedHat
    • Labels:
      None
    • Environment:
      CentOS 7.1 64bit

      Description

      It seems MariaDB changed the service name for CentOS 7 yum packages of MariaDB 10.1.9 ? prior it was service name = mysql but now mariadb ?

      However, both servcie names exist but for mysql service name you get incorrectly reported error that mysql isn't running. CentOS 7 usually can use both service or systemctl versions together.

      Problem Summary

      these 3 work

      service mariadb status
      systemctl status mysql
      systemctl status mariadb

      but this doesn't

      service mysql status

      Problem Details

      service mysql status
       ERROR! MySQL is running but PID file could not be found

      service mariadb status
      Redirecting to /bin/systemctl status  mariadb.service
      mariadb.service - MariaDB database server
         Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled)
        Drop-In: /etc/systemd/system/mariadb.service.d
                 └─migrated-from-my.cnf-settings.conf
         Active: active (running) since Tue 2015-12-01 17:23:15 UTC; 24min ago
       Main PID: 907 (mysqld)
         Status: "Taking your SQL requests now..."
         CGroup: /system.slice/mariadb.service
                 └─907 /usr/sbin/mysqld

      but seems only systemctl mysql service name works like it's mariadb service name counterpart

      systemctl status mysql
      mariadb.service - MariaDB database server
         Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled)
        Drop-In: /etc/systemd/system/mariadb.service.d
                 └─migrated-from-my.cnf-settings.conf
         Active: active (running) since Tue 2015-12-01 17:23:15 UTC; 34min ago
       Main PID: 907 (mysqld)
         Status: "Taking your SQL requests now..."
         CGroup: /system.slice/mariadb.service
                 └─907 /usr/sbin/mysqld

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nirbhay_c Nirbhay Choubey (Inactive)
              Reporter:
              p4guru George L
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration