HHVM 3.6 and MySQL/MariaDB Problems

I’ve just updated HHVM/HHVM-Dev to 3.6 and I started having issues connecting to my database.

It appears that things have changed (https://github.com/facebook/hhvm/issues/5002) and you now need to specify a MySQL socket so it can connect to the server properly. To do this I added the following to my HHVM server.ini. You will need to change it to point at your MySQL socket if your server is local.

hhvm.mysql.socket = /tmp/mysql.sock

Hope this helps others.


View Comments (2)

  • Thanks for your post. I met same problem.
    But I solve it by install the nightly-build HHVM. It seems only 3.6 has this issue. 3.7 is OK even not specify MySQL socket path.

Related Post

This website uses cookies.