临时设置:
set global connection_control_max_connection_delay = 60000
配置文件:
/etc/mysql/conf.d/mysqlutf8.cnf
[mysqld]
# 连接控制插件,重启后生效;
plugin-load-add = connection_control.so # 不加这个,mysql重启不起来
connection_control_min_connection_delay = 3000
connection_control_max_connection_delay = 86400
connection_control_failed_connections_threshold = 2