Home > Database > Mysql Tutorial > MySQL 超时有关问题

MySQL 超时有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:14:45
Original
1001 people have browsed it

MySQL 超时问题 MySQL默认连接超时时间为 28800 也就是8个小时,如果八个小时没有连接没有进行操作就会自动断掉,这样就会导致有时服务还在运行,但是就是操作不了 ? 既然知道问题了修改配置文件,超时时间改为一年,就行了 vim?etc/my.cnf??然后在 [mysqld]?

MySQL 超时问题

MySQL默认连接超时时间为28800 也就是8个小时,如果八个小时没有连接没有进行操作就会自动断掉,这样就会导致有时服务还在运行,但是就是操作不了

?

既然知道问题了修改配置文件,超时时间改为一年,就行了

vim?etc/my.cnf??然后在

[mysqld]?后面添加下面三句

character-set-server=utf8

wait_timeout=315360000

interactive_timeout=315360000

(注意:character-set-server=utf8 是我自己加的和这个问题无关)

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template