Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7442

Creating mysql datadir with nonexist parent directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mysql
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      If I override datadir for mysql module and trying to create directory, parent directory  for which not created yet - it failing. In next example datadir = /opt/database/db, and exist only /opt.

      Error: Execution of '/usr/sbin/mysqld --defaults-extra-file=/etc/my.cnf --basedir=/usr --datadir=/opt/database/db --user=mysql --log-error=/var/log/mysql/error.log --initial
      ize-insecure' returned 1: mysqld: Can't create directory '/opt/database/db/' (Errcode: 2 - No such file or directory) 
      

      If any chance to resolve such issue or I should worries about parent directory on my own?

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            yotles Semen D
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support