cancel
Showing results for 
Search instead for 
Did you mean: 

Mysql.sock MySQL server through socket

Mysql.sock MySQL server through socket

Preconditions

MAGENTO2.2
PHP.7.1

 

Steps to reproduce

magento cron:run 2>&1 | grep -v "Ran jobs by schedule"

 

Actual result

Can somebody help and let me know what problem,thank you!

 

Expected result

[Zend_Db_Adapter_Exception]
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[PDOException]
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
cron:run [--group GROUP] [--bootstrap BOOTSTRAP]
1 REPLY 1

Re: Mysql.sock MySQL server through socket

Hi @rigu12,

 

This isn't a Magento problem itseld but Mysql.

I've made a fast search and most of the times the issue could be realted, in part, with permissions.

 

Maybe you wan to read some of this links:

 

Maybe those links can be a good starting point.