Currently I am setting up a server to run a web site built on Symfony framework (1.4 version). After tuning Apache2 to work with needed folders, and setting proper permissions on every chunk of path required (755 for folders, 644 for files), PHP is not connecting with MySQL.
Full error log looks like this:
PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
Index (13) of the error suggests permissions failing, but socket permissions look like this:
srw-r--r-- 1 mysql mysql 0 May 31 19:58 /var/run/mysqld/mysqld.sock
I tried what I found in other questions, but nothing worked yet.
I am using Ubuntu 12.04.
srwxrwxrwx 1 mysql mysql 0 Jun 13 18:00 /var/run/mysqld/mysqld.sock
. Mysql user and group should have full permissions on the sock file...PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
category.mysql
?mysql
won't start. In the error log I find[ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only