MySQL Error 2006 (HY000) at line 406: MySQL server has gone away

前端 未结 3 1441
傲寒
傲寒 2021-01-01 14:27

I have a MYSQL dump from a database that I am trying to move to a new db server. When I try to import my sql dump, I receive the following error:

MySQL Error         


        
3条回答
  •  情话喂你
    2021-01-01 14:39

    1) Change in MySql config file: # /etc/mysql/my.cnf

    #section 
    #
    [mysqld]
    #
    key_buffer              = 32M
    max_allowed_packet      = 32M
    thread_stack            = 512K
    thread_cache_size       = 64
    #
    

    2) MySql deamon restart

    /etc/init.d/mysql restart 
    

    Should resolve yours issues.

提交回复
热议问题