Home > Database > Mysql Tutorial > mysql查看和设置连接数_MySQL

mysql查看和设置连接数_MySQL

WBOY
Release: 2016-06-01 13:01:31
Original
1020 people have browsed it

mysql查看和设置设置数据库可以连接数目,使用下面的额语法查看当前数据库别连接的数量
show global status like 'Max_used_connections';
下面的语句可以查看该数据库可以连接的数量。

show variables like '%max_connections%';

下面这个是设置连接数的命令,但是如果mysql数据库重启的 该设置重置回去 。

set global max_connections=5000

具体的操作如下:

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template