Posts Tagged symfony

Symfony 2 Migration to Git

Posted on February 9, 2010 with No Comments

Symfony is a PHP RAD framework like Zend Framework, CakePHP, etc… They have been using subversion for version control. Today while checking language section of github.com, i found Symfony version 2 is using git for source control.

See the announcement at symfony blog

http://www.symfony-project.org/

Other opensource project like CakePHP, Gallery 2, etc.. are using git for source control.

Tags: , ,

Category: Git, symfony

Can’t connect to local MySQL server through socket

Posted on October 9, 2009 with No Comments

While running symfony jobeet tutorial, i got following error

fwh@pc11-desktop:~/web/jobeet$ php symfony doctrine:build-sql
>> doctrine  generating sql for models
 
 
  While exporting model class 'JobeetAffiliate' to SQL: PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)  
 
 
fwh@pc11-desktop:~/web/jobeet$

This is fixed by editing config/databases.yaml

Find line

dsn: 'mysql:host=localhost;dbname=jobeet'

Replace with

dsn: 'mysql:host=localhost;dbname=jobeet;unix_socket=/var/run/mysqld/mysqld.sock'