All posts tagged symfony

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 . . . Read more