当我的 PC 关闭时,我的个人 MySQL 服务器会关闭吗? [英] Does My Personal MySQL Server Shutdown When My PC Shuts Down?

查看:82
本文介绍了当我的 PC 关闭时,我的个人 MySQL 服务器会关闭吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于 MySQL 的快速问题.我目前正在为 ROBLOX 开发 RPG 游戏,我将使用大量 SQL.我想知道的是:如果我关闭我的 PC,MySQL 服务器是否也会关闭?如果是这样,我该如何更改它以便我的 MySQL 服务器始终运行,即使我的计算机已关闭?

I have a quick question about MySQL. I'm currently developing an RPG game for ROBLOX, and I'm going to be using a significant amount of SQL. What I want to know is: if I shut down my PC, does the MySQL server shut down as well? If so, how can I change this so that my MySQL server will always run, even if my computer is turned off?

推荐答案

问:如果我关闭我的 PC,MySQL 服务器也会关闭吗?

Q: if I shut down my PC, does the MySQL server shut down as well?

A:是的,当您的计算机操作系统关闭"时,MySQL Server 实例(安装并在您的计算机上运行)会关闭".当计算机关闭时,MySQL 服务器没有运行.

A: Yes, the MySQL Server instance (that is installed and runs on your computer) is "shutdown" when your computer the operating system is "shutdown". When the computer is turned off, the MySQL server is not running.

问:我怎样才能改变这个......

Q: How can I change this ...

A:此行为无法更改.当您的计算机关闭时,没有操作系统程序在其上运行.这是设计使然.(您的计算机可能有一些低级硬件例程,保持网卡监听 WOL 数据包等.但是当您的计算机关闭时,MySQL 服务器无法运行.

A: This behavior cannot be changed. When your computer is turned off, no operating system programs are running on it. This is by design. (Your computer may have some low-level hardware routines, keeping the network card up listening for a WOL packet, etc. But there is no way that the MySQL Server will be running when your computer is off.

如果你想让 MySQL 运行,那么运行它的计算机需要开机并且操作系统必须运行.以这种方式部署的计算机,作为单独的计算机连续运行或按计划运行,即使没有用户主动登录我们使用该计算机通常也被称为服务器".

If you want MySQL running, then the computer it runs on needs to be powered on and the OS has to be running. A computer deployed in this fashion, as a separate computer that runs continuously, or on a schedule, even when no user is actively logged on our using the computer is often referred to as a "server".

这篇关于当我的 PC 关闭时,我的个人 MySQL 服务器会关闭吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆