简体   繁体   English

Mysql Flush Host会删​​除表中的数据吗?

[英]Mysql Flush Host will it delete my data in tables…?

I am trying to connect to my DB on a server with Workbench, it took my a while to learn how to connect through workbench and in a process I blocked because of many connection errors. 我试图使用Workbench连接到服务器上的数据库,花了我一段时间来学习如何通过Workbench进行连接,并且在由于许多连接错误而阻塞的过程中,我花了一些时间。

I have learned through google and Mysql Documentation Documentation that i need to flash host to unblock the connection chanel 我已经通过Google和Mysql文档文档了解到,我需要刷新主机才能取消阻止连接通道

FLUSH HOSTS

I was trying to find out if that command will in any way affect data held in my DB, if it i will remove all the data in tables or remove users from table...? 我试图找出该命令是否会以任何方式影响数据库中保存的数据,如果我将删除表中的所有数据或从表中删除用户...?

Am I safe to run this command without emptying my tables...? 我可以安全地运行此命令而无需清空表...吗?

Yes, I believe so. 是的,我相信。 Excerpt from Documentation 文档摘录

HOSTS 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. 如果某些主机更改了IP地址,或者发生了错误消息Host'host_name'被阻止,则应该刷新主机缓存。 (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. (请参见第B.5.2.6节,“主机'host_name'被阻止”。)当给定主机在连接到MySQL服务器时连续发生多个max_connect_errors错误时,MySQL认为出了点问题,并阻止了主机的进一步连接要求。 Flushing the host cache enables further connection attempts from the host. 刷新主机缓存将启用来自主机的进一步连接尝试。

It clearly says that, it clears the host cache and not data stored in user/system database. 它清楚地说,它清除主机缓存,而不清除用户/系统数据库中存储的数据。 So, running it should be fine/safe I believe. 因此,我相信运行它应该很好/安全。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM