guys. I know that post not fully related to programming. But I really need someone help. So my problem is:
I have Symfony2 application, I move it from localhost to development server with, but I cant run application because I geeting error:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'xx.xx.xxx.xxx' (4)' in /var/www/route/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 40
I trying to find solution in Stackoverflow and in internet, I found that mysql has config file which blocking external resources and accept only 127.0.0.1 address, so I commented both lines as described here.
My Symfony2 database parameters looks like:
parameters:
database_driver: pdo_mysql
database_host: localhost
database_port: null
database_name: db_name
database_user: user
database_password: pass
Can someone help to me? Thanks!