mysql> show variables like ‘general_log_file’; — 看看日志文件保存位置
    mysql> set global general_log_file=’tmp/general.lg’; — 设置日志文件保存位置
    mysql> show variables like ‘log_output’; — 看看日志输出类型 table或file
    mysql> set global log_output=’table’; — 设置输出类型为 table
    mysql> set global log_output=’file’; — 设置输出类型为file

    转载:https://blog.csdn.net/Abysscarry/article/details/79949480?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.baidujsUnder6&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.baidujsUnder6