How to unblock with mysqladmin flush hosts

后端 未结 3 2074
野的像风
野的像风 2020-11-30 20:48

I have gone through similar cases listed here but it doesn\'t seem to work.

I was using MySQL Workbench to establish a connection with my database which is hosted on

3条回答
  •  抹茶落季
    2020-11-30 21:08

    You should put it into command line in windows.

    mysqladmin -u [username] -p flush-hosts
    **** [MySQL password]
    

    or

    mysqladmin flush-hosts -u [username] -p
    **** [MySQL password]
    

    For network login use the following command:

    mysqladmin -h  -P  -u  -p flush-hosts
    mysqladmin -h [YOUR RDS END POINT URL] -P 3306 -u [DB USER] -p flush-hosts 
    

    you can permanently solution your problem by editing my.ini file[Mysql configuration file] change variables max_connections = 10000;

    or

    login into MySQL using command line -

    mysql -u [username] -p
    **** [MySQL password]
    

    put the below command into MySQL window

    SET GLOBAL max_connect_errors=10000;
    set global max_connections = 200;
    

    check veritable using command-

    show variables like "max_connections";
    show variables like "max_connect_errors";
    

提交回复
热议问题