Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently created a t1.micro instance running Ubuntu Linux. I then used that instance to create an image that would allow me to clone more instances. Installed LAMP and PHPMyAdmin on the parent instance so naturally, the cloned instance took on those properties as well. It's my understanding that each instance has it's own LAMP server that is autonomous of all other instances' LAMP servers. So, why is it that when a query is executed on the parent instance that it also executes on the cloned instance?

share|improve this question

You must be connecting to a hostname rather than localhost (a mysql instance hosted on the local server), if mysql commands affect the same mysql instance when initiated from different servers. Post the config of ~/.my.cnf or else elaborate on how you are actually connecting to the mysql instance from either of the ec2 instances.

share|improve this answer
Nope. I'm connecting to mysql with PHP's mysql_connect function. The hostname that I user for that function is localhost though – Lance May 3 '14 at 17:10
Then the commands you execute will not affect both databases. – Peter May 4 '14 at 0:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.