Im connecting to mysql database with server defined as localhost:/some/path/ms.sock
, can anyone explain how does this works? It surely is a path since localhost:/some/../some/path/ms.sock
works as well, but when i run this exec
from php
mysqldump -h localhost:/some/path/ms.sock -u xxx -pxxx xxx
it writes Error: 2005: Unknown MySQL server host 'localhost:/some/path/ms.sock'
The PHP script is in the same directory. However this works fine:
new mysqli("localhost:/some/path/ms.sock", "xxx", "xxx", "xxx");