gpt4 book ai didi

Mysql Flush Host 会删除我在表中的数据吗...?

转载 作者:行者123 更新时间:2023-11-30 22:55:05 25 4
gpt4 key购买 nike

我正在尝试使用 Workbench 连接到我在服务器上的数据库,我花了一段时间来学习如何通过 Workbench 进行连接,并且在一个过程中由于许多连接错误而被阻止。

通过google和Mysql文档了解到Documentation我需要闪存主机来解锁连接 channel

FLUSH HOSTS

我试图找出该命令是否会以任何方式影响我的数据库中保存的数据,如果它我将删除表中的所有数据或从表中删除用户......?

在不清空表的情况下运行此命令是否安全...?

最佳答案

是的,我相信是这样。摘自Documentation

HOSTS

Empties the host cache. You should flush the host cache if some of your hosts change IP address or if the error message Host 'host_name' is blocked occurs. (See Section B.5.2.6, “Host 'host_name' is blocked”.) When more than max_connect_errors errors occur successively for a given host while connecting to the MySQL server, MySQL assumes that something is wrong and blocks the host from further connection requests. Flushing the host cache enables further connection attempts from the host.

它清楚地表明,它清除了主机缓存,而不是存储在用户/系统数据库中的数据。所以,我相信运行它应该没问题/安全。

关于Mysql Flush Host 会删除我在表中的数据吗...?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26776815/

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