PhpMyAdmin question

Ryan Schmidt ryandesign at macports.org
Fri Oct 28 14:33:19 PDT 2011


On Oct 28, 2011, at 10:53, Bradley Giesbrecht wrote:

> On Oct 28, 2011, at 6:10 AM, Phil Dobbin wrote:
> 
>> On 27/10/11 at 01:01, ryandesign at macports.org (Ryan Schmidt) wrote:
>> 
>>> Yes you do need to somehow get phpmyadmin into your web space. One way would be to create a symlink in your document root. For example if your document root is /opt/local/apache2/htdocs you could do:
>>> 
>>> cd /opt/local/apache2/htdocs
>>> ln -s /opt/local/www/phpmyadmin phpmyadmin
>> 
>> I took your advice & rather than move the phpmyadmin directory, I used the symlink above.
>> 
>> MySQL throws the error `access denied #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) when the phpMyAdmin front page loads.
>> 
>> in config.inc.php the socket is /tmp/mysql.sock which works with PHP files. I spent a good while Googling this but nothing of any use came up.
> 
> With a default MacPorts prefix your mysql5 socket should be here:

But he told us before he's not using MacPorts mysql5; he's using his own manually-compiled MySQL server. In which case, Phil, you need to figure out where that server of yours is putting its socket file, and then tell PHP by editing the php.ini or perhaps the phpmyadmin config file.


Or, forgo using a socket file and connect to your server by its IP address, e.g. "127.0.0.1".



More information about the macports-users mailing list