小菜鸟,之前一直有误区,以为刷新error log只需要在MySQL中flush logs就可以了,结果发现每次都没有成功,正确的做法如下shell >mv a.err a.err-oldmysql>flush logs;退出就会发现errorlog已经重新生成一个文件a.err