1 开启general-log 在my.conf中配置 general-log = 1 开启general-log general_log_file = /data/databases/logs/mysql.log 设置日志的路径地址