Database Manual / Reference / Database Commands

Sessions Commands会话命令

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.有关特定命令的详细信息,包括语法和示例,请单击指向该命令参考页面的链接。

Command命令Description描述Atlas Support支持
abortTransactionAbort transaction.中止事务。Yes
commitTransactionCommit transaction.提交事务。Yes
endSessionsExpire sessions before the sessions' timeout period.在会话超时时间之前过期会话。Yes
killAllSessionsKill all sessions.终止所有会话。No support for Flex clusters, M0, and M10 clusters.不支持Flex集群、M0和M10集群
killAllSessionsByPatternKill all sessions that match the specified pattern终止所有符合指定模式的会话No support for M0 and Flex clusters.不支持M0和Flex集群
killSessionsKill specified sessions.终止指定的会话。No support for M0 and Flex clusters.不支持M0和Flex集群
refreshSessionsRefresh idle sessions.刷新空闲会话。Yes
startSessionStarts a new session.开始新会话。Yes