linux查看tcp最大连接数 如何查看linux下的数据库连接数?

如何查看linux下的数据库连接数?要查看MySQL在当前系统中设置的最大连接数:[根@localhost~]#/usr/bin/mysqladmin-uroot-p variables | grep

如何查看linux下的数据库连接数?

要查看MySQL在当前系统中设置的最大连接数:[根@localhost~]#/usr/bin/mysqladmin-uroot-p variables | grep max| connections | max| connections | 100//默认值为100[根@localhost~]#纳米/etc/我的.cnf可以修改和编辑最大连接数我的.cnf在[mysqld]中,添加:设置变量=最大连接数=1000[根@localhost~]#服务mysqld重启//重启mysql。此时,MySQL中的最大连接数设置为1000。

linux如何查询mysql中的连接数及最大连接数?

查看MySQL在当前系统中设置的最大连接数:

[根@localhost~]#/usr/bin/mysqladmin-uroot-p variables | grep max| connections

| max|connections | 100//默认值为100

[根@localhost~]#纳米/etc/我的.cnf

可以修改和编辑最大连接数我的.cnf在[mysqld]中,添加:

set variable=max connections=1000

[根@localhost~]#Service mysqld restart//restart MySQL

此时,MySQL连接的最大数目设置为1000。