Warning:mysqli_real_connect (): (hy000/2002): No such file or directory in
Reply to discussion (solution)
Too little information to provide
For some reason MySQL in OS X gets the locations of the required socket file a bit wrong, but thanks to a veritable wizard I know (that's you, Gavin) the solution are as simple as setting up a symbolic link.
A socket (appearing as a zero length file) As/tmp/mysql.sock Or/var/mysql/mysql.sock but 1 or more apps are Looking in the other location for it.
Rather than move the socket and has to edit config files and remember to keep edited files local and away from servers wh Ere the paths is correct, simply create a symbolic link so your Mac finds the required socket, even when it's looking in The wrong place!
If you have/tmp/mysql.sock and No/var/mysql/mysql.sock then ...
Cd/var sudo mkdir mysqlsudo chmod 755 mysqlcd mysqlln-s/tmp/mysql.sock Mysql.sock
If you have/var/mysql/mysql.sock and No/tmp/mysql.sock then
Cd/tmpln-s/var/mysql/mysql.sock Mysql.sock
You'll need permissions to create the directory and link, so just prefix the commands above with sudo if necessary.