The option log-error is a server option (mysqld).
It is recognized in /etc/my.cnf
under the [mysqld]
group.
That option does not exist for the mysql client program and would not be understood under the [mysql]
group header.
Click Here to see all the options for the mysql client program.
The reason log-error
works under the [mysqld_safe]
group header? Any option mysqld_safe does not understand gets passed to [mysqld]
.
The mysql client program cannot reroute the destination file of log-error
. You must change it in my.cnf
and restart. It will have no effect on [mysqld]
group header in .my.cnf
because log-error
is not a dynamic variable.