Cannot connect to mysql when running symfony tasks Print

  • 22

If you get the following error when running a symfony task through the command line (like insert-sql):

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

Try configuring config/propel.ini with the server hostname where your account resides (ie. sg108.servergrove.com) instead of localhost. This will force propel to connect through TCP/IP instead of the socket which does not exist in a chrooted environment.


Was this answer helpful?

« Back