小编joh*_*ohn的帖子

#2006 MySQL服务器在Wamp中消失了

我正在使用Wampserver 2.0版.当我尝试通过MySQL查询浏览器或PHPMyAdmin导入sql文件时,我收到以下错误.

Error 2006: MySQL Server has gone away.
Run Code Online (Sandbox Code Playgroud)

文件大小为54,528 KB.

在C:\ wamp\bin\mysql\mysql5.1.30\my.ini中,我在[mysqldump]和[wampmysqld]中将max_allowed_pa​​cket设置为100M.我在my.ini中找不到wait_timeout变量.有什么方法可以解决这个问题吗?供您参考,我在下面给出了my.ini文件的内容.

# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options …
Run Code Online (Sandbox Code Playgroud)

mysql wamp mysql-error-2006

38
推荐指数
3
解决办法
6万
查看次数

标签 统计

mysql ×1

mysql-error-2006 ×1

wamp ×1