Perl not connecting to MySQL [Solved]

Andrew Udvare audvare at gmail.com
Mon Mar 11 05:34:38 UTC 2019


> On 2019-03-11, at 00:10, MacPorts <macports at hyperbole-software.com> wrote:
> 
> I noticed that the socket in /var/mysql is called mysql.sock while the one in /opt/local/var/run/mysql5 is called mysqld.sock (note the 'd' between 'l' and '.').
> 
> I tried using
>    $ sudo ln -s /var/mysql/mysql.sock /opt/local/var/run/mysql5/mysqld.sock
> 
> for some reason that also didn't work.
> 
> Then I tried:
>    $ sudo ln -s /var/mysql/mysql.sock /opt/local/var/run/mysql5/mysql.sock
>    $ sudo mv /opt/local/var/run/mysql5/mysql.sock /opt/local/var/run/mysql5/mysqld.sock
> 
> this worked. I don't know why this worked and making the link directly didn't, but at least it's working now.
> 

I ran into a similar issue a long time ago with PHP. PHP has an option to control this setting at build time and it also has a runtime option in php.ini.

The DBI port should be doing the same. I don't think users should have to add things outside of the prefix, unmanaged by port.

-- 
Andrew Udvare


More information about the macports-users mailing list