From af76a49dd243522e282f7e7ec3db58aac9347b3a Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 6 Nov 2016 10:15:28 -0500 Subject: [PATCH] set a high max_connect_errors --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 21e6b49..ab726bd 100644 --- a/install.sh +++ b/install.sh @@ -7,5 +7,5 @@ sudo apt-get install -y vim curl python-software-properties sudo apt-get update sudo apt-get -y install mysql-server sed -i "s/^bind-address/#bind-address/" /etc/mysql/my.cnf -mysql -u root -proot -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; FLUSH PRIVILEGES;" +mysql -u root -proot -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; FLUSH PRIVILEGES; SET GLOBAL max_connect_errors=10000;" sudo /etc/init.d/mysql restart