{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/4987","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/4987/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/4987/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/4987/events","html_url":"https://github.com/facebook/hhvm/issues/4987","id":60491537,"number":4987,"title":"HHVm 3.6.0 - MySQL PDO not respecting socket path","user":{"login":"keepxtreme","id":6564777,"avatar_url":"https://avatars.githubusercontent.com/u/6564777?v=3","gravatar_id":"","url":"https://api.github.com/users/keepxtreme","html_url":"https://github.com/keepxtreme","followers_url":"https://api.github.com/users/keepxtreme/followers","following_url":"https://api.github.com/users/keepxtreme/following{/other_user}","gists_url":"https://api.github.com/users/keepxtreme/gists{/gist_id}","starred_url":"https://api.github.com/users/keepxtreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keepxtreme/subscriptions","organizations_url":"https://api.github.com/users/keepxtreme/orgs","repos_url":"https://api.github.com/users/keepxtreme/repos","events_url":"https://api.github.com/users/keepxtreme/events{/privacy}","received_events_url":"https://api.github.com/users/keepxtreme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/php5%20incompatibility","name":"php5 incompatibility","color":"837ced"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-03-10T12:25:50Z","updated_at":"2015-03-11T18:07:24Z","closed_at":null,"body":"starting with 3.6.0 I observed a problem using localhost-connections. Further investigations proofed HHVM using a different default path (now: /tmp/mysql.sock) while it's /var/run/mysqld/mysqld.sock in debian by default.\r\n\r\nI set the \"hhvm.mysql.socket\" to that path in HHVMs php.ini and most pages started working correctly however Drupal still doesn't.\r\nFinally I found the reason (well, I hope): Drupal is using the PDO-Extension which still searches the wrong path for the socket due not respectiong hhvm.mysql.socket:\r\n````\r\n\\nFatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' in :\\nStack trace:\\n#0 /var/www/extern/includes/database/database.inc(307): PDO->__construct()\\n#1 /var/www/extern/includes/database/mysql/database.inc(51): DatabaseConnection->__construct()\\n#2 /var/www/extern/includes/database/database.inc(1689): DatabaseConnection_mysql->__construct()\\n#3 /var/www/extern/includes/database/database.inc(1479): Database::openConnection()\\n#4 /var/www/extern/includes/database/database.inc(2350): Database::getConnection()\\n#5 /var/www/extern/includes/bootstrap.inc(1933): db_query()\\n#6 /var/www/extern/includes/bootstrap.inc(1946): drupal_is_denied()\\n#7 /var/www/extern/includes/bootstrap.inc(2397): drupal_block_denied()\\n#8 /var/www/extern/includes/bootstrap.inc(2252): _drupal_bootstrap_page_cache()\\n#9 /var/www/extern/index.php(20): drupal_bootstrap()\\n#10 {main}\r\n````\r\n\r\nI solved this using a symlink however this should be fixed cause it's realy confusing"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/78328305","html_url":"https://github.com/facebook/hhvm/issues/4987#issuecomment-78328305","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/4987","id":78328305,"user":{"login":"fredemmott","id":360927,"avatar_url":"https://avatars.githubusercontent.com/u/360927?v=3","gravatar_id":"","url":"https://api.github.com/users/fredemmott","html_url":"https://github.com/fredemmott","followers_url":"https://api.github.com/users/fredemmott/followers","following_url":"https://api.github.com/users/fredemmott/following{/other_user}","gists_url":"https://api.github.com/users/fredemmott/gists{/gist_id}","starred_url":"https://api.github.com/users/fredemmott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredemmott/subscriptions","organizations_url":"https://api.github.com/users/fredemmott/orgs","repos_url":"https://api.github.com/users/fredemmott/repos","events_url":"https://api.github.com/users/fredemmott/events{/privacy}","received_events_url":"https://api.github.com/users/fredemmott/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T18:07:24Z","updated_at":"2015-03-11T18:07:24Z","body":"Given the location is distribution-dependent, the right fix for the default location is probably just to install mysql-server on the build machines, and let our cmake files pick up the right location."}}