I had a bit of trouble connecting to my mysql db while trying to run symfony propel:insert-sql

It would return with a massive error with this in the middle: Native Error: Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (2)

I fixed it by changing the db configuration in the config/propel.ini to use the ip instead of localhost