Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 at 17:10
    
Then the commands you execute will not affect both databases. –  Peter May 4 at 0:34

Your Answer

 
discard

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.