Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.0.32
-
None
Description
I noticed that:
mysqladmin --flush-logs
|
mysqladmin --flush-error-log
|
mysqladmin --refresh
|
mysql -e "FLUSH LOGS"
|
Don't flush the error log and:
mysqladmin --flush-binary-log
|
Doesn't rotate the binary logs
While FLUSH LOGS; run interactively does rotate logs(error and binary).
This is confirmed also by strace.
To reproduce it's simple:
$ mv error.log error.log.1
|
$ mysqladmin flush-error-log # or any other of the above commands
|
error.log is not re-created
You can confirm it with strace by:
$ strace -f -e trace=%file -p `pidof mysqld` -o mysqld.strace
|
After running the commands mysqld.strace file will be empty:
$ more mysqld.strace
|
If you do the same using:
$ mysql -e "FLUSH LOGS;"
|
Then the strace file will contain the proper system calls.
Attachments
Issue Links
- relates to
-
MDEV-14774 Mysqladmin manual page missing some commands
- Closed