Commit 55de7025 authored by unknown's avatar unknown

Bug# 5303 Windows --log-error option doesn't work correctly


sql/mysqld.cc:
  changed to open log_error_file instead of "mysql.err" on Windows
parent 03a91f9b
......@@ -2918,11 +2918,10 @@ we force server id to 2, but this MySQL server will not act as a slave.");
exit(1);
#ifdef __WIN__
#define MYSQL_ERR_FILE "mysql.err"
if (!opt_console)
{
freopen(MYSQL_ERR_FILE,"a+",stdout);
freopen(MYSQL_ERR_FILE,"a+",stderr);
freopen(log_error_file,"a+",stdout);
freopen(log_error_file,"a+",stderr);
FreeConsole(); // Remove window
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment