Composer users can't connect through socket
I start to fight with this issue with "composer update",
then I start to think that the problem is related to cpanel+composer but after some investigation I found that if I log as a user (with root there are no issues) and try "mysql" command I got also an error:
If I try to locate mysql.sock:
(broken link, not broken with root user) also in my /etc/my.cnf I've:
In PDOConnection.php line 47:
SQLSTATE[HY000] [2002] No such file or directory
In PDOConnection.php line 43:
SQLSTATE[HY000] [2002] No such file or directory
then I start to think that the problem is related to cpanel+composer but after some investigation I found that if I log as a user (with root there are no issues) and try "mysql" command I got also an error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")
If I try to locate mysql.sock:
lrwxrwxrwx 1 root root 30 3 apr 13.13 /tmp/mysql.sock -> ../../var/lib/mysql/mysql.sock(broken link, not broken with root user) also in my /etc/my.cnf I've:
[client]
socket=/var/lib/mysql/mysql.sock
-
Hello, Could you let us know the permissions and ownership values on the MySQL socket file? EX: stat /var/lib/mysql/mysql.sock
Thank you.0 -
Accesso: (0777/srwxrwxrwx) Uid: ( 994/ mysql) Gid: ( 991/ mysql)0 -
Hello, The output you provided looks normal. Could you open a support ticket so we can take a closer look? Create Support Ticket - Version 68 Documentation - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
3 comments