linux查看tcp最大連接數(shù) 如何查看linux下的數(shù)據(jù)庫(kù)連接數(shù)?
如何查看linux下的數(shù)據(jù)庫(kù)連接數(shù)?要查看MySQL在當(dāng)前系統(tǒng)中設(shè)置的最大連接數(shù):[根@localhost~]#/usr/bin/mysqladmin-uroot-p variables | grep
如何查看linux下的數(shù)據(jù)庫(kù)連接數(shù)?
要查看MySQL在當(dāng)前系統(tǒng)中設(shè)置的最大連接數(shù):[根@localhost~]#/usr/bin/mysqladmin-uroot-p variables | grep max| connections | max| connections | 100//默認(rèn)值為100[根@localhost~]#納米/etc/我的.cnf可以修改和編輯最大連接數(shù)我的.cnf在[mysqld]中,添加:設(shè)置變量=最大連接數(shù)=1000[根@localhost~]#服務(wù)mysqld重啟//重啟mysql。此時(shí),MySQL中的最大連接數(shù)設(shè)置為1000。
linux如何查詢mysql中的連接數(shù)及最大連接數(shù)?
查看MySQL在當(dāng)前系統(tǒng)中設(shè)置的最大連接數(shù):
[根@localhost~]#/usr/bin/mysqladmin-uroot-p variables | grep max| connections
| max|connections | 100//默認(rèn)值為100
[根@localhost~]#納米/etc/我的.cnf
可以修改和編輯最大連接數(shù)我的.cnf在[mysqld]中,添加:
set variable=max connections=1000
[根@localhost~]#Service mysqld restart//restart MySQL
此時(shí),MySQL連接的最大數(shù)目設(shè)置為1000。