symfony - Doctrine connection time out error in AWS RDS -


i trying connect aws rds aws ec2 application zend framwork app using doctrine module connect mysql. can successfuly connent aws rds database mysql workbench. appreciated. of stack traces:

pdoexception /vendor/doctrine/dbal/lib/doctrine/dbal/driver/pdoconnection.php:40 sqlstate[hy000] [2002] connection timed out vendor/doctrine/dbal/lib/doctrine/dbal/driver/pdoconnection.php(40): pdo->__construct('mysql:host=doct...', 'user', 'password', array) vendor/doctrine/dbal/lib/doctrine/dbal/driver/pdomysql/driver.php(41): doctrine\dbal\driver\pdoconnection->__construct('mysql:host=doct...', 'user', 'password', array)  vendor/doctrine/dbal/lib/doctrine/dbal/connection.php(356): doctrine\dbal\driver\pdomysql\driver->connect(array, 'user', 'password', array)  vendor/doctrine/dbal/lib/doctrine/dbal/connection.php(680): doctrine\dbal\connection->connect()  vendor/doctrine/orm/lib/doctrine/orm/query/exec/singleselectexecutor.php(50): doctrine\dbal\connection->executequery('select count(*)...', array, array, null) vendor/doctrine/orm/lib/doctrine/orm/query.php(286): doctrine\orm\query\exec\singleselectexecutor->execute(object(doctrine\dbal\connection), array, array) vendor/doctrine/orm/lib/doctrine/orm/abstractquery.php(794): doctrine\orm\query->_doexecute() vendor/doctrine/orm/lib/doctrine/orm/abstractquery.php(598): doctrine\orm\abstractquery->execute(null, 3) 

is complex query? user has proper rights execute query?

don't think doctrine causing problem, it's outbound firewall of host you're executing query from. same machine workbench executed from?


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -