How to unblock with mysqladmin flush hosts

后端 未结 3 2075
野的像风
野的像风 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 <RDS ENDPOINT URL> -P <PORT> -u <USER> -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";
    
    0 讨论(0)
  • 2020-11-30 21:10

    mysqladmin is not a SQL statement. It's a little helper utility program you'll find on your MySQL server... and "flush-hosts" is one of the things it can do. ("status" and "shutdown" are a couple of other things that come to mind).

    You type that command from a shell prompt.

    Alternately, from your query browser (such as phpMyAdmin), the SQL statement you're looking for is simply this:

    FLUSH HOSTS;
    

    http://dev.mysql.com/doc/refman/5.6/en/flush.html

    http://dev.mysql.com/doc/refman/5.6/en/mysqladmin.html

    0 讨论(0)
  • 2020-11-30 21:15

    You can easily restart your MySql service. This kicks the error off.

    0 讨论(0)
提交回复
热议问题