I was working on MAMP phpMyAdmin and everything worked well until i query an ALTER TABLE
statement from SQL tab. Operation was too long to end so i decided to r
It may find weird but, I tried deleting the file mysql.sock from the tmp directory and this error disappeared...
I am seeing exactly the same. MAMP MySQL running, and this messgage from PHPMyAdmin
MySQL said:
#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
The server is not responding (or the local server's socket is not correctly configured).
I did use : sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
to allow local PHP CLI access to MAMP MySQL
I found the config file for phpMyAdmin here: /Applications/MAMP/bin/phpMyAdmin/config.inc.php
I added this explicit path in the config file.
$cfg['Servers'][$i]['socket'] = '/Applications/MAMP/tmp/mysql/mysql.sock';
Now it works :)
I got the same response when I went to the default URI via the link from the main Mamp page, which was http://localhost/phpMyAdmin/?lang=en-iso-8859-1&language=English
. I tried the previous answer's suggestions to no avail. But then, when I chopped off some of the options in the URI and instead just went to any of the following:
http://localhost/phpMyAdmin/?language=English
http://localhost/phpMyAdmin/?lang=en-iso-8859-1
http://localhost/phpMyAdmin
then it worked.