欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

MySQL报错合集解决办法: server has gone away, @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON

程序员文章站 2022-07-04 08:28:36
server has gone away: 如下图 执行以下命令 @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON: 如下图 修改要导入的sql数据文件(data.sql),注释或者去掉类似以下内容的代码: SET @ ......

server has gone away: 如下图

MySQL报错合集解决办法: server has gone away, @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON

执行以下命令

    show global variables like '%timeout%';
    set global interactive_timeout=1296000;
    show global variables like 'max_allowed_packet';
    set global max_allowed_packet=268435456;

@@global.gtid_purged can only be set when @@global.gtid_mode = on: 如下图

MySQL报错合集解决办法: server has gone away, @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON

修改要导入的sql数据文件(data.sql),注释或者去掉类似以下内容的代码:

set @@global.gtid_purged='0c655e1c-8360-11e8-b632-883fd358a41a:1-46763628';

set global innodb_file_format = barracuda; 如下图

MySQL报错合集解决办法: server has gone away, @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON

执行以下命令

    set global innodb_file_per_table =on;
    set global innodb_file_format = barracuda;