MySQL installation error login automatic lock account plug-in CONNECTION_CONTROL

MySQL installation error login automatic lock account plug-in CONNECTION_CONTROL

View mysql version

select version();

Insert image description here

Two ways to install plugins

First: Modify the configuration file and restart the service

#安装插件自动锁定账户 
plugin-load-add=connection_control.so
connection_control_failed_connections_threshold=3 #当连接失败次数超过3次时,触发连接控制
connection_control_max_connection_delay=2147483647 #连接控制最大延迟时间,单位为微秒(这里设置为2147483647微秒,即约24天)
connection_control_min_connection_delay=600000 #连接控制最小延迟时间,单位为微秒(这里设置为600000微秒,即1分钟)
connection_control=3
interactive_timeout=1800 #交互式连接的超时时间,单位为秒(这里设置为1800秒,即30分钟)
wait_timeout=1800 #非交互式连接的超时时间,单位为秒(这里设置为1800秒,即30分钟)

Second: Enter the database command line installation

install plugin CONNECTION_CONTROL soname 'connection_control.so';
install plugin connection_control_failed_login_attempts soname 'connection_control.so';

Insert image description here

Check if the installation is successful

show PLUGINS;

Insert image description here
default allocation:
Insert image description here

After successful installation, view the modified configuration policy

Insert image description here

verify

Unable to log in after incorrect login password three times
Insert image description here

Guess you like

Origin blog.csdn.net/qq_34041723/article/details/132859776