The same script php file, always works smoothly on HHVM 3.2 to HHVM 3.5. Until I upgrade it to HHVM 3.6.
It is a simply script which use mysqli connection and so on. Now it is shown the error as below:
Connect failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I tried to find the answer and faild. So I upgrde the HHVM to nightly build version. It is 3.7-dev.
davidyin@fiob:/etc/hhvm$ hhvm --version
HipHop VM 3.7.0-dev (rel)
Repo schema: 9008d5e6e7f6584d09ed3b14deceac5a34f363c1
And it did solve the error, and the script is working as expected.
But, later I found the reason why it happen.
hhvm.mysql.socket = /tmp/mysql.sock
To specify the mysql socket and let HHVM knows how to connect mySQL server or MariaDB server.
I did not try the solution. I found it here.