Hi,

I can see that some people get the classic error : "Can't connect to local 
MySQL server through socket '/tmp/mysql.sock"

Most of the time, it comes from a Zend Server environment.
Here is how i was able to solve this :

Create a symlink from "/tmp/mysql.sock" to "/var/run/mysqld/mysqld.sock" :

ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock

And if that doesn't work, you still can force MySQL to use TCP/IP as a 
connector instead of socket. To do that, simply change the host to 
"127.0.0.1" (instead of "localhost") :

doctrine.dbal:
    driver:        pdo_mysql
    dbname:    anonymation_sf2
    user:         anonymation
    password:  anonymation
    host:         127.0.0.1

Then, be aware that your user should be created for the "127.0.0.1" domain 
('anonymation'@'127.0.0.1') and the users on "localhost" won't work.


br,
Benjamin.


--
Benjamin Dulau - anonymation CEO
anonymation.com | code.anonymation.com
[email protected]


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to