gpt4 book ai didi

MySQL 服务器 : What is the Difference between "Stop Server" and "Bring Offline"?

转载 作者:行者123 更新时间:2023-11-29 05:09:05 24 4
gpt4 key购买 nike

我可以在 mysql workbench 中看到 Stop ServerBring Offline

enter image description here

我希望两者都用于停止服务,但在何时使用 Stop Server 和 Bring Offline?

方面仍然混淆两者之间的区别

最佳答案

停止服务器只是停止mysql进程

离线模式 是 MySQL 5.7.5 中引入的新功能,基本上排除了除 DBA 之外的所有用户:

MySQL Server now supports an “offline mode” with these characteristics:

  • Connected client users who do not have the SUPER privilege are disconnected on the next request, with an appropriate error. Disconnection includes terminating running statements and releasing locks. Such clients also cannot initiate new connections, and receive an appropriate error.

  • Connected client users who have the SUPER privilege are not disconnected, and can initiate new connections to manage the server.

  • Replication slave threads are permitted to keep applying data to the server.

Only users who have the SUPER privilege can control offline mode. To put a server in offline mode, change the value of the new offline_mode system variable from OFF to ON. To resume normal operations, change offline_mode from ON to OFF. In offline mode, clients that are refused access receive an ER_SERVER_OFFLINE_MODE error.

来源:Changes in MySQL 5.7.5 (2014-09-25, Milestone 15)

关于MySQL 服务器 : What is the Difference between "Stop Server" and "Bring Offline"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42745286/

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