SOLUTION FOUND:
I had the exact same problem on a mac, it is a problem with the mysql setup/combined with php..
tried to connect using the methods listed here
http://www.w3schools.com/php/php_mysql_connect.asp
which gave me the exact same error as the installer
a quick google gave me this solution
http://stackoverflow.com/questions/42199...connect-vi
essentially the fix is creating a symbolic link
For some reason mysql on 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 is as simple as setting up a symbolic link.
You may have a socket (appearing as a zero length file) as /tmp/mysql.sock or /var/mysql/mysql.sock but 1 or more apps is looking in the other location for it.
Rather than move the socket and have to edit config files and remember to keep edited files local and away from servers where the paths are 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 but no /var/mysql/mysql.sock then...
cd /var
mkdir mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
have fun ... and great product "form tools" impressed
I had the exact same problem on a mac, it is a problem with the mysql setup/combined with php..
tried to connect using the methods listed here
http://www.w3schools.com/php/php_mysql_connect.asp
PHP Code:
<?php
// Create connection
$con=mysqli_connect("example.com","peter","abc123","my_db");
// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
which gave me the exact same error as the installer
a quick google gave me this solution
http://stackoverflow.com/questions/42199...connect-vi
essentially the fix is creating a symbolic link
For some reason mysql on 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 is as simple as setting up a symbolic link.
You may have a socket (appearing as a zero length file) as /tmp/mysql.sock or /var/mysql/mysql.sock but 1 or more apps is looking in the other location for it.
Rather than move the socket and have to edit config files and remember to keep edited files local and away from servers where the paths are 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 but no /var/mysql/mysql.sock then...
cd /var
mkdir mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
have fun ... and great product "form tools" impressed