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

mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.log'

    XMLWordPrintable

Details

    Description

      Latest MariaDB 10.0.29 Yum install via mariadb official yum repo for CentOS 6.8 64bit is giving folks issues when log-error is set in /etc/my.cnf. MariaDB 10.0.28 and below didn't have such issues.

      [mysqld_safe] 
      socket=/var/lib/mysql/mysql.sock
      log-error=/var/log/mysqld.log
      #nice = -5
      open-files-limit = 8192
      

      sestatus
      SELinux status:                 disabled
      

      Shutting down MySQL.. SUCCESS! 
      Starting MySQL.170119 12:03:11 mysqld_safe Logging to '/var/log/mysqld.log'.
      170119 12:03:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
      /usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.log' (Errcode: 13 "Permission denied")
       ERROR! 
      service mysql stop
       ERROR! MySQL server PID file could not be found!
      service mysql start
      Starting MySQL.170119 12:03:13 mysqld_safe Logging to '/var/log/mysqld.log'.
      170119 12:03:13 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
      /usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.log' (Errcode: 13 "Permission denied")
       ERROR! 
      

      rpm -qa | grep MariaDB
      MariaDB-compat-10.0.29-1.el6.x86_64
      MariaDB-devel-10.0.29-1.el6.x86_64
      MariaDB-common-10.0.29-1.el6.x86_64
      MariaDB-server-10.0.29-1.el6.x86_64
      MariaDB-shared-10.0.29-1.el6.x86_64
      MariaDB-client-10.0.29-1.el6.x86_64
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            p4guru George L
            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.