错误2006(HY000):MySQL服务器消失了当我试图获取一个大型的sql文件(一个大的sql文件)时,我会得到这个错误。INSERT(查询)。mysql> source file.sqlERROR 2006 (HY000): MySQL server has gone awayNo connection. Trying to reconnect...Connection id: 2Current database: *** NONE ***ERROR 2006 (HY000): MySQL server has gone awayNo connection. Trying to reconnect...Connection id: 3Current database: *** NONE ***表中没有更新任何内容。我尝试删除和取消删除表/数据库,以及重新启动MySQL。这些事情都解决不了问题。这是我的最大数据包大小:+--------------------+---------+| Variable_name | Value |+--------------------+---------+| max_allowed_packet | 1048576 |+--------------------+---------+以下是文件大小:$ ls -s file.sql 79512 file.sql当我尝试另一种方法时.。$ ./mysql -u root -p my_db < file.sqlEnter password: ERROR 2006 (HY000) at line 1: MySQL server has gone away
添加回答
举报
0/150
提交
取消