[MDEV-4968] Old advices in mysql-log-rotate script Created: 2013-08-29  Updated: 2019-09-20  Resolved: 2019-09-20

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Scripts & Clients
Affects Version/s: 5.5.32
Fix Version/s: 10.2.28, 5.5.66, 10.1.42, 10.3.19, 10.4.9

Type: Bug Priority: Minor
Reporter: Honza Horak Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 1
Labels: beginner-friendly, upstream-fixed

Issue Links:
Relates
relates to MDEV-16621 Fix logrotate script Closed

 Description   

This is really a minor fix, just making mariadb-5.5.32/support-files/mysql-log-rotate.sh better. The following patch seems to be self-explanatory.

diff -up mariadb-5.5.32/support-files/mysql-log-rotate.sh.errlog mariadb-5.5.32/support-files/mysql-log-rotate.sh
--- mariadb-5.5.32/support-files/mysql-log-rotate.sh.errlog     2013-08-29 14:35:34.839119044 +0200
+++ mariadb-5.5.32/support-files/mysql-log-rotate.sh    2013-08-29 14:36:24.532088426 +0200
@@ -1,9 +1,9 @@
 # This logname can be set in /etc/my.cnf
-# by setting the variable "err-log"
-# in the [safe_mysqld] section as follows:
+# by setting the variable "log-error"
+# in the [mysqld_safe] section as follows:
 #
-# [safe_mysqld]
-# err-log=@localstatedir@/mysqld.log
+# [mysqld_safe]
+# log-error=@localstatedir@/mysqld.log
 #
 # If the root user has a password you have to create a
 # /root/.my.cnf configuration file with the following



 Comments   
Comment by Daniel Black [ 2017-12-30 ]

https://github.com/mysql/mysql-server/commit/7ff336f2ca9f5d80ae4025c6066312de3ce90b26

Comment by Vicențiu Ciorbaru [ 2019-09-20 ]

Fixed with 13274032af7480c6b99e9df3502dfb852116080e

Generated at Thu Feb 08 07:00:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.