PhpMyAdmin question

Ryan Schmidt ryandesign at macports.org
Fri Oct 28 14:59:36 PDT 2011


On Oct 28, 2011, at 16:58, Phil Dobbin wrote:

> On 28/10/11 at 22:33, Ryan Schmidt wrote:
> 
>> 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".
> 
> I used all three methods in the end. Entered `/tmp/mysql.sock’ in both config.inc.php & php.ini & used 127.0.0.1 instead of localhost & I’m in.

The socket file is only used if you tell mysql to connect to "localhost". If you use any other value (hostname or IP address, including 127.0.0.1), it will open a network connection to that address, and ignore the socket file.




More information about the macports-users mailing list