简体   繁体   English

在后台运行在命令行中运行的 mysql 查询

[英]Run mysql query that is running in command line in the background

I have executed a stored procedure in mysql command line prompt, i need to make it run at the background.我在 mysql 命令行提示符中执行了一个存储过程,我需要让它在后台运行。 So that even if i logged out from the VM, query can run at the background.这样即使我从 VM 注销,查询也可以在后台运行。

I saw few options, but all of them are before logging into mysql command prompt, not for the already started queries.我看到的选项很少,但它们都是在登录 mysql 命令提示符之前,而不是已经开始的查询。

Please suggest a solution.请提出解决方案。

You can create database event and schedule this procedure over there so even if you logged out from your VM, it will keep running on the server.您可以在那里创建数据库事件并安排此过程,因此即使您从 VM 注销,它也会继续在服务器上运行。

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

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