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

Error on booting: mysqld_safe: The file /etc/mysql//mysqld#012does not exist or is not executable

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2.25
    • 10.2
    • Packaging, Platform Debian
    • None
    • Ubuntu 18.04. Mariadb 10.2.25 Galera cluster

    Description

      After upgrading the cluster from 10.1 to 10.2 we get this error when trying to restart the server:

      Jun 18 08:48:34 dbmysql1 mysql[32263]:  * Starting MariaDB database server mysqld
      Jun 18 08:48:34 dbmysql1 /etc/init.d/mysql[32294]: 190618 08:48:34 mysqld_safe The file /etc/mysql//mysqld
      Jun 18 08:48:34 dbmysql1 /etc/init.d/mysql[32294]: does not exist or is not executable. Please cd to the mysql installation
      Jun 18 08:48:34 dbmysql1 /etc/init.d/mysql[32294]: directory and restart this script from there as follows:
      Jun 18 08:48:34 dbmysql1 /etc/init.d/mysql[32294]: ./bin/mysqld_safe&
      Jun 18 08:48:34 dbmysql1 /etc/init.d/mysql[32294]: See https://mariadb.com/kb/en/mysqld_safe for more information
      Jun 18 08:48:34 dbmysql1 mysqld_safe: The file /etc/mysql//mysqld#012does not exist or is not executable. Please cd to the mysql installation#012directory and restart this script from there as follows:#012./bin/mysqld_safe&#012See https://mariadb.com/kb/en/mysqld_safe for more information
      

      Looking at /usr/bin/mysqld_safe looks like variable $ledir is not being properly initialized and this test is failing:

      if test ! -x "$ledir/$MYSQLD"

      Setting

      ledir='/usr/sbin'

      before that line makes it work.

      Attachments

        Activity

          People

            elenst Elena Stepanova
            jorfermo Jorge Ferrando
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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