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

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2.25
    • Fix Version/s: 10.2
    • Component/s: Packaging, Platform Debian
    • Labels:
      None
    • Environment:
      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

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

              Dates

              Created:
              Updated: