MySQL“#2006年的今天,MySQL服务器已经消失了;在phpMyAdmin中

MySQL“#2006年的今天,MySQL服务器已经消失了;在phpMyAdmin中,mysql,phpmyadmin,wamp,wampserver,Mysql,Phpmyadmin,Wamp,Wampserver,我正试图上传一个10 MB的CSV Excel文件,其中包含超过10万个条目,我一直在phpMyAdmin中遇到“MySQL服务器已经消失”错误。我正在使用WAMP服务器,我更改了在my.ini文件中可以找到的所有变量,但没有结果。重新启动服务器后两者都不可用。 我改变了: max_allowed_packet = 1000M innodb_log_file_size = 500M innodb_log_buffer_size = 800M innodb_lock_wait_timeout =

我正试图上传一个10 MB的CSV Excel文件,其中包含超过10万个条目,我一直在phpMyAdmin中遇到“MySQL服务器已经消失”错误。我正在使用WAMP服务器,我更改了在my.ini文件中可以找到的所有变量,但没有结果。重新启动服务器后两者都不可用。
我改变了:

max_allowed_packet = 1000M 
innodb_log_file_size = 500M
innodb_log_buffer_size = 800M
innodb_lock_wait_timeout = 600
整个my.ini文件如下所示:

enter co# 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 (in this
# installation this directory is C:\mysql\data) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password   = your_password
port        = 3306
socket      = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[wampmysqld]
port        = 3306
socket      = /tmp/mysql.sock
key_buffer_size = 16M
max_allowed_packet = 1000M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 8M
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
basedir=c:/wamp/bin/mysql/mysql5.6.17
log-error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.6.17/data

lc-messages-dir=c:/wamp/bin/mysql/mysql5.6.17/share

# Change your locale here !
lc-messages=fr_FR

# Avoid warning
explicit_defaults_for_timestamp = TRUE

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
# 
#skip-networking

# Disable Federated by default
skip-federated

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# binary logging format - mixed recommended
binlog_format=mixed

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id   = 1

# Replication Slave (comment out master section to use this)


# New for MySQL 5.6 if no slave
skip-slave-start

#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin

# Point the following paths to different dedicated disks
#tmpdir     = /tmp/     
#log-update     = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\mysql\data/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = C:\mysql\data/
#innodb_log_arch_dir = C:\mysql\data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 511M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 500M
innodb_log_buffer_size = 800M
#innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 600

[mysqldump]
quick
max_allowed_packet = 1000M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

[mysqld]
port=3306
explicit_defaults_for_timestamp = TRUE
为中型系统输入co#示例MySQL配置文件。
#
#这适用于一个内存很少(32M-64M)的系统,MySQL在其中运行
#MySQL是一个重要的部分,或与MySQL一起使用的高达128M的系统
#其他程序(如web服务器)
#
#您可以将此文件复制到
#/etc/my.cnf设置全局选项,
#mysql data dir/my.cnf设置特定于服务器的选项(在此
#安装此目录为C:\mysql\data)或
#~/.my.cnf以设置用户特定的选项。
#
#在此文件中,您可以使用程序支持的所有长选项。
#如果您想知道程序支持哪些选项,请运行该程序
#使用“-help”选项。
#以下选项将传递给所有MySQL客户端
[客户]
#密码=您的密码
端口=3306
socket=/tmp/mysql.sock
#下面是一些特定程序的条目
#MySQL服务器
[wampmysqld]
端口=3306
socket=/tmp/mysql.sock
按键缓冲区大小=16M
允许的最大数据包数=1000M
排序缓冲区大小=512K
净缓冲区长度=8K
读取缓冲区大小=8M
读缓存大小=512K
myisam\u排序\u缓冲区大小=8M
basedir=c:/wamp/bin/mysql/mysql5.6.17
log error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.6.17/data
lc messages dir=c:/wamp/bin/mysql/mysql5.6.17/share
#在这里更改您的区域设置!
lc消息=fr\u fr
#避免警告
explicit\u默认值为\u timestamp=TRUE
#根本不在TCP/IP端口上侦听。这可能是一种安全增强,
#如果所有需要连接到mysqld的进程都在同一台主机上运行。
#与mysqld的所有交互都必须通过Unix套接字或命名管道进行。
#请注意,在Windows上使用此选项而不启用命名管道
#(通过“启用命名管道”选项)将使mysqld变得无用!
# 
#跳过网络
#默认情况下禁用联邦
跳过联邦
#复制主服务器(默认)
#复制需要二进制日志记录
log-bin=mysql-bin
#二进制日志记录格式-建议混合
binlog_格式=混合
#1和2^32-1之间所需的唯一id
#如果未设置主主机,则默认为1
#但如果省略,则不会起到主控的作用
服务器id=1
#复制从机(注释掉主节以使用此选项)
#MySQL 5.6的新增功能(如果没有从服务器)
跳过从机启动
#
#要将此主机配置为复制从机,您可以选择
#两种方法:
#
#1)使用“更改主控形状”命令(在我们的手册中有详细说明)-
#语法是:
#
#将MASTER更改为MASTER\u HOST=,MASTER\u PORT=,
#主用户=,主密码=;
#
#替换为带引号的字符串和
#根据主机的端口号(默认为3306)。
#
#例如:
#
#将MASTER更改为MASTER_HOST='125.564.12.1',MASTER_端口=3306,
#MASTER_USER='joe',MASTER_PASSWORD='secret';
#
#或
#
#2)设置以下变量。但是,如果您选择此方法,则
#第一次启动复制(例如,即使未成功)
#如果您在主密码中输入了错误的密码,而从密码无法
#连接),从属服务器将创建master.info文件,以及任何更高版本
#此文件中对以下变量值的更改将被忽略,并且
#被master.info文件的内容覆盖,除非关闭
#删除从属服务器,删除master.info并重新启动从属服务器。
#出于这个原因,您可能希望保持下面的行不变
#(注释)并改为使用更改主控形状(见上文)
#
#2和2^32-1之间所需的唯一id
#(与船长不同)
#如果设置了主主机,则默认为2
#但如果省略,将不起从属作用
#服务器id=2
#
#此从属服务器的复制主机-必需
#主主机=
#
#连接时从属服务器将用于身份验证的用户名
#致船长-必须
#主用户=
#
#连接到时从属服务器将使用的密码进行身份验证
#硕士学位是必修的
#主密码=
#
#主机正在侦听的端口。
#可选-默认为3306
#主端口=
#
#二进制日志记录-从属服务器不需要,但建议使用
#log-bin=mysql-bin
#将以下路径指向不同的专用磁盘
#tmpdir=/tmp/
#日志更新=/专用目录路径/主机名
#如果使用InnoDB表,请取消注释以下内容
#innodb\u data\u home\u dir=C:\mysql\data/
#innodb_data_file_path=ibdata1:10M:autoextend
#innodb\u log\u group\u home\u dir=C:\mysql\data/
#innodb\u log\u arch\u dir=C:\mysql\data/
#您可以将..缓冲区\池\大小设置为50-80%
#但要注意将内存使用率设置得太高
innodb_缓冲区_池_大小=511M
#innodb_附加_成员_池大小=2M
#将..日志文件大小设置为缓冲池大小的25%
innodb_日志_文件_大小=500M
innodb_日志_缓冲区_大小=800M
#innodb \u刷新\u日志\u在\u trx\u commit=1
innodb\u锁定\u等待\u超时=600
[mysqldump]
快的
允许的最大数据包数=1000M
[mysql]
没有自动重新灰烬
#如果不熟悉SQL,请删除下一个注释字符
#安全更新
[香港国际会计准则及守则]
按键缓冲区=20M
排序缓冲区大小=20M
读取缓冲区=2M
写入缓冲区=2M
[myisamchk]
按键缓冲区=20M
排序缓冲区大小=20M
读取缓冲区=2M
写入缓冲区=2M
[mysqlhotcopy]
交互超时
[mysqld]
端口=3306
explicit\u默认值为\u timestamp=TRUE

尝试增加

如果这不起作用,试着增加

另外,增加innodb上的锁定时间是在查询级别;这意味着如果另一个查询拥有锁,查询将等待多长时间来获取锁。然后,这将导致向客户端抛出类似于超过
1205锁等待超时的效果