mysql开启普通日志及慢日志方法
mysql日志开通,添加在my.cnf中即可,将路径修改为日志存放路径
普通日志设置方法: general_log = on general_log_file=/filedir/mysql_general.log慢日志设置方法: log-slow
