[摘要]+-----------------------------------+-------+Connection_errors_max_connections 当MySQL的最大并发数大于系统变量(s...
+-----------------------------------+-------+
Connection_errors_max_connections 当MySQL的最大并发数大于系统变量(show variables)中max_connections的最大并发数,因此而被拒绝的次数,将会记录在这个变量里。如果Connection_error_max_connections值比较大,则说明当前系统并发比较高,要考虑调大max_connections的值。
Connections表示MySQL从启动至今,成功建立连接的连接数,这个值是不断累加的。
Max_used_connections表示MySQL从启动至今,同一时刻并发的连接数,取得是最大值。如果这个值大于 max_connections则表明系统经常处于高并发的状态,应该考虑调大最大并发连接数。
3、连接线程参数(thread variabls and status)
mysql> show variables like 'thread%';
+--------------------+---------------------------+
关键词:MySQL优化之连接优化示例代码