我的计算机关闭时可以运行mySQL吗? [英] Can I run mySQL when my computer is off?

查看:123
本文介绍了我的计算机关闭时可以运行mySQL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这听起来像是一个愚蠢的问题,但这是我的新手.我正在建立一个网站,希望它能够访问MySQL数据库.我最近下载了 MySQL 5.6 ,并已使用Workbench和Command Line Client学习制作数据库.

This may sound like a dumb question, but I'm new to this. I'm setting up a website, and I want it to be able to have access to a MySQL database. I've recently downloaded MySQL 5.6 and have used the Workbench and Command Line Client to learn to make databases.

但是所有这些似乎都在本地主机上运行,​​所以我认为它只是在我的计算机上运行,​​当我关闭它时,网站将无法访问它. 这样对吗? 即使我的计算机处于关闭状态,我是否也必须在其他地方运行它才能使它可以全天候访问我的网站24/7?

But all of this seems to be running of localhost, so I think it's just running off my computer, and when I shut it down the website won't be able to access it. Is this correct? Do I have to run it somewhere else to keep it accessible to my website 24/7, even when my computer is off?

推荐答案

好,是的,除非您将其部署在另一台服务器上,否则它正在本地主机上运行.是的,如果要在关闭计算机的情况下运行它,则必须在其他地方运行它.实际上,如果您想建立一个网站并使用一个数据库,那么那里提供了许多服务,这些服务提供免费托管并带有一个MySQL数据库.

Well, yes it is running of localhost unless you deployed it on another server. Yes, you have to run it somewhere else if you want it to run when your PC is turned off. In fact, if you want to make a website and use a database for it then there are many services out there that provide free hosting and come with a MySQL database.

一个例子是freehosting.com而无意做广告.快速研究会为您显示许多替代方案.

An example would be freehosting.com without intending to do advertisement. A quick research would show you many alternatives.

这篇关于我的计算机关闭时可以运行mySQL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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