Cannot connect to MySQL when running symfony 1.x tasks

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. instead of localhost. This will force propel to connect through TCP/IP instead of the socket which does not exist in a chrooted environment.