MySQL Connection
1 最大连接数
show variables like '%max_connection%'; 查看最大连接数
set global max_connections=1000; 重新设置最大连接数2 当前连接数
mysql> show status like 'Threads%';
+-------------------+-------+
| Variable_name | Value |
+-------------------+-------+
| Threads_cached | 32 |
| Threads_connected | 10 |
| Threads_created | 50 |
| Threads_rejected | 0 |
| Threads_running | 1 |
+-------------------+-------+
5 rows in set (0.00 sec)Last updated