https://stackoverflow.com/questions/8925323/redirection-of-standard-and-error-output-appending-to-the-same-log-file The second way would look like this: & myjob.bat 2>&1 >> C:\MyLog.txt Or this: & myjob.bat 2>&1 | Out-File C:\M
错误日志是一个文本文件,记录了 MySQL Server 每次启动和关闭的详细信息以及运行过程中所有较为严重的警告和错误信息.在遇到问题时,应该首先查看这个文件. 如何开启 使用命令 SHOW VARIABLES LIKE 'log_error'; 查看日志文件位置: mysql> SHOW VARIABLES LIKE 'log_error'; 如果没有开启,可以用 --log-error[=file_name] 选项来开启 mysql 错误日志,该选项指定 mysqld 保存错误日志文件的位