简体   繁体   English

如何在云上托管SQL数据库?

[英]How to host an sql database on a cloud?

How do you host an Mysql database that can be accessed by different websites on a cloud, such as google drive and ubuntu one. 你如何托管可以被云上不同网站访问的Mysql数据库,例如google drive和ubuntu one。 Is it even possible to do this? 甚至可以这样做吗? If so how is it done, because so many businesses that use Mysql databases start up on a cloud. 如果是这样,它是如何完成的,因为许多使用Mysql数据库的企业都在云端启动。 Can it be done for free? 它可以免费完成吗?

There are two primary ways of setting up a cloud-hosted MySQL database: either you set up a cloud-hosted virtual server and install MySQL Server on it... or you set up a cloud-hosted, managed, MySQL-only service, which gives you access to the MySQL server component, but not to the underlying operating system, which is maintained by the service provider. 设置云托管的MySQL数据库有两种主要方式:要么设置云托管的虚拟服务器并在其上安装MySQL Server,要么设置云托管,托管,仅限MySQL的服务,这使您可以访问MySQL服务器组件,但不能访问由服务提供商维护的底层操作系统。

http://aws.amazon.com/free/ explains the free tier service offering from Amazon Web Services (AWS), which is the cloud hosting provider that I use. http://aws.amazon.com/free/解释了Amazon Web Services(AWS)提供的免费套餐服务,这是我使用的云托管服务提供商。 The Relational Database Service (RDS) offers a small ("micro") MySQL server with 640 MB of RAM and 20 GB or hard drive space for no monthly charge for the first 12 months. 关系数据库服务(RDS)提供一个小型(“微型”)MySQL服务器,具有640 MB RAM和20 GB或硬盘空间,前12个月不收取月费。 After the first year, that server will cost you $18.75/month. 第一年后,该服务器将花费您每月18.75美元。 Servers with substantially more capacity are also available at monthly prices that increase with memory and hard drive storage space... but you only pay for what you use for as long as you use it. 具有更多容量的服务器也可按月价格提供,随着内存和硬盘存储空间的增加而增加......但只要您使用它,您只需支付使用的费用。 If you start up a large server and then shut it down almost immediately, for example, you'd only pay for the hours that it was running. 例如,如果你启动一台大型服务器然后几乎立即将其关闭,那么你只需支付它运行的小时数。

You can also get complete servers, not just the MySQL component, for deploying your applications, web servers, etc. In AWS, that service is called Elastic Compute Cloud (EC2). 您还可以获得完整的服务器,而不仅仅是MySQL组件,用于部署应用程序,Web服务器等。在AWS中,该服务称为Elastic Compute Cloud(EC2)。

Beyond something very small like the offerings in the AWS free tier, you are not going to get anything "free." 除了AWS免费套餐中的产品之外,你不会得到任何“免费”的东西。

You access such a server the same way you access any MySQL server: over TCP, either over the Internet (using SSL if you care about security) or over a virtual private network (VPN). 您访问此类服务器的方式与访问任何MySQL服务器的方式相同:通过TCP,通过Internet(如果您关心安全性使用SSL)或通过虚拟专用网络(VPN)。

Re: the alternatives comment, outside of Amazon RDS, there is also ScaleGrid, Compose, and Azure Database that provide managed MySQL hosting solutions. Re:备注评论,在Amazon RDS之外,还有ScaleGrid,Compose和Azure数据库,它们提供托管的MySQL托管解决方案。 All are fully managed with varying capabilities and offer free trials. 所有这些都具有不同的功能,并提供免费试用。 Any free plan will be very limited, and are usually designed for dev/test environments. 任何免费计划都将非常有限,通常设计用于开发/测试环境。

You can compare MySQL providers here to see the different benefits of each. 您可以在此比较MySQL提供商 ,以了解每个提供商的不同优势。 Disclaimer - I work at ScaleGrid. 免责声明 - 我在ScaleGrid工作。

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

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