Forum: 

Access mysql from another ec2 instance

Teddybg7's picture

I'm trying to set up a beta server that accesses my production server's database (different files but using same backend data).  Both servers are ec2 instances.  I'm stuck with this error:

 

PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 110

Using the symfony turnkey appliance.  Any quick pointers someone can give me to get me started in the right direction? 

Jeremy Davis's picture

You'll need to configure MySQL to listen to remote connections (if you haven't already). Instructions are in the wiki. And you'll also need to open the port (in the AWS security profile - not sure how you do that sorry).

Post new comment