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

MariaDB init script fails to start (missing dependency on MariaDB-client in server RPM)

Details

    Description

      I installed "MariaDB-server" on CentOS using offical repos. "service mysql start" took an awful lot of time, resulting in a time out. Investigation revealed that the function wait_for_ready() defined in /etc/init.d/mysql was using 'mysqladmin ping' to check the status of the server. Ironically, mysqladmin wasn't marked as dependency of 'MariaDB-server' package and hence wasn't installed. Installing "MariaDB-client" did the trick.

      To sum up, MariaDB-server uses a tool which is provided by MariaDB-client, but doesn't request it(as dependency) during installation resulting in service management.

      Attachments

        Activity

          Indeed, while it looks expensive to install the whole package for a single ping that mysqladmin does upon server startup via the init script, it has to be done anyway, otherwise the script never reports success (even though the server starts, of course).

          elenst Elena Stepanova added a comment - Indeed, while it looks expensive to install the whole package for a single ping that mysqladmin does upon server startup via the init script, it has to be done anyway, otherwise the script never reports success (even though the server starts, of course).

          People

            serg Sergei Golubchik
            shredder12 Shashank Sahni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.