Skip to content

Commit b50b23f

Browse files
trostenHery Ramilison
authored andcommitted
BUG#26148391 MYSQLD_PRE_SYSTEMD SCRIPT DOES NOT GET ERROR LOG FROM CUSTOM MY.CNF
Script searched for log-error only, however log_error is also supported by mysqld, fixed by using regexp. (cherry picked from commit 10819a832cccddf894ba32b6b39f739b16283433)
1 parent 4ebf8c4 commit b50b23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/systemd/mysqld_pre_systemd.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ install_db () {
4343

4444
local instance=$1
4545
datadir=$(get_option mysqld datadir "/var/lib/mysql${instance:+-$instance}" $instance)
46-
log=$(get_option mysqld log-error "/var/log/mysql${instance:+-$instance}.log" $instance)
46+
log=$(get_option mysqld 'log[_-]error' "/var/log/mysql${instance:+-$instance}.log" $instance)
4747

4848
# Restore log, dir, perms and SELinux contexts
4949

0 commit comments

Comments
 (0)