I dropped general_log table, how do I create it again?

前端 未结 6 1651
渐次进展
渐次进展 2021-01-31 06:16

Logging enabled

I enabled logging using:

SET GLOBAL log_output = \'TABLE\';
SET GLOBAL general_log = \'ON\';

All executed queries was lo

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 06:22

    Recreate table in MySQL 8.0.17:

    use mysql;
    CREATE TABLE general_log(
    event_time timestamp(6) NOT NULL ,
    user_host mediumtext NOT NULL,
    thread_id bigint(21) unsigned NOT NULL,
    server_id int unsigned NOT NULL,
    command_type varchar(64) NOT NULL,
    argument mediumblob NOT NULL
    ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
    

提交回复
热议问题