Trying to connect to a dababase which is in a different server:
Command line
php symfony configure:database "mysql:host=<IP>;dbname=<db_name>" <username> <password>
Databases.yml
all:
doctrine:
class: sfDoctrineDatabase
param:
dsn: 'mysql:host=<IP>;dbname=<db_name>'
username: <username>
password: <password>
Getting error:
PDO Connection Error: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond