aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/mysql/mariadb
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2021-07-30 20:11:28 +0800
committerKhem Raj <raj.khem@gmail.com>2021-07-30 10:42:35 -0700
commit1a4144d954692ad68121d16adae09dc990e8ab1f (patch)
tree67de646d6eb9ba8c15cfc476d87088ee221db79c /meta-oe/recipes-dbs/mysql/mariadb
parent10152335d1e9b0a1db0ecf358b4cc66e8a028bad (diff)
downloadmeta-openembedded-contrib-1a4144d954692ad68121d16adae09dc990e8ab1f.tar.gz
mariadb: redefine log-error item
The log-error item which defined in my.cnf is "/var/log/mysqld.err" previouly and it's not consistent with which created in install_db service file which will call mysql-systemd-start to create the file "/var/log/mysqld.log". And it fails when boot with sysvinit as below: $ service mysqld start Starting MariaDB.210727 04:05:03 mysqld_safe Logging to '/var/log/mysqld.err'. 210727 04:05:03 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql /usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.err' (Errcode: 13 "Permission denied") So make the log-error item consistent to fix the above failure and also remove the related workaround when boot with systemd. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs/mysql/mariadb')
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/my.cnf2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/my.cnf b/meta-oe/recipes-dbs/mysql/mariadb/my.cnf
index dc4c172e54..75db46a559 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb/my.cnf
+++ b/meta-oe/recipes-dbs/mysql/mariadb/my.cnf
@@ -10,7 +10,7 @@ user = mysql
port = 3306
socket = /var/lib/mysql/mysql.sock
pid-file = /var/lib/mysql/mysqld.pid
-log-error = /var/log/mysqld.err
+log-error = /var/log/mysqld.log
basedir = /usr
datadir = /var/lib/mysql
skip-external-locking