gpt4 book ai didi

mysql - RELOAD 权限以刷新主机

转载 作者:行者123 更新时间:2023-11-29 12:13:14 28 4
gpt4 key购买 nike

我已连接到远程 mysql 服务器,但在几次连接不良(由于自动化)后,我被服务器阻止。我正在尝试解锁自己。

提示建议我执行mysqladinlush-hosts

# This was done locally
$ mysql -h remote_host -u user_name
ERROR 1129 (HY000): Host 'remote_host' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
$ mysqladmin flush-hosts
mysqladmin: refresh failed; error: 'Access denied; you need (at least one of) the RELOAD privilege(s) for this operation'

我收到此消息:

mysqladmin: refresh failed; error: 'Access denied; you need (at least one of) the RELOAD privilege(s) for this operation'

因为我对 mysql 和 mysql-workbench 还很陌生,所以我不确定如何解决这个问题。

我还尝试通过 SSH 连接到 remote_host 并输入命令 mysqladminlush-hosts 但出现错误:

error: 'Access denied for user 'user1'@'localhost' (using password: NO)'

最佳答案

Google 中关于“mysql RELOAD 权限”的第二个链接 - FLUSH syntax :

To execute FLUSH, you must have the RELOAD privilege.

突出显示的链接显示:

The RELOAD privilege enables use of the FLUSH statement. It also enables mysqladmin commands that are equivalent to FLUSH operations: <...>

并且,在该页面上,依次有一个 --user option .

关于mysql - RELOAD 权限以刷新主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30310438/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com