开发者

How to interface an AWS hosted website with Database on EBS?

开发者 https://www.devze.com 2023-03-11 08:31 出处:网络
The startup I\'m working for is constructing a website, and we want to use AWS to run and host our site and the accompanying mysql database. Apparently when you terminate an AWS instance, any data sto

The startup I'm working for is constructing a website, and we want to use AWS to run and host our site and the accompanying mysql database. Apparently when you terminate an AWS instance, any data stored on it is lost, so we would be keeping the database on the EBS system. The thing I can't figure out, though, is how to interface things running on these two different platforms. How do I tell开发者_运维技巧 the web server where the database is?

Sorry if this is a really noob question. Still trying to grasp how this whole cloud service works.


If I am reading correct, your DB is on the EBS mounted on the same machine, if that is the case, you have to make sure you tell MySQL (my.cnf) to point it's datadir to EBS directory.

Rest is as usual. Your host is localhost and your user credentials.

BTW, FYI, there is one more option from Amazon for DB that is RDS (http://aws.amazon.com/rds/) which provides lots of functionality + advantages, take a look at it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号