That was it. The output from the port notes command doesn’t have a mysql57 
example, but I used the same pattern as the other versions.

Thank you, both!

(and I”ve updated my list address!)

> On Apr 23, 2019, at 6:26 AM, Ryan Schmidt <[email protected]> wrote:
> 
> 
> 
> On Apr 23, 2019, at 00:24, Andrew Udvare wrote:
> 
>> On 2019-04-23, at 00:16, Jeff Greenberg wrote:
>> 
>>> I installed mysql57-server. I can access it via the command line, but 
>>> apache returns:
>>> 
>>> Failed to connect to your database server. The server reports the following 
>>> message: SQLSTATE[HY000] [2002] Connection refused.
>>> 
>>> I’m running php72, and have php72-mysql @7.2.16_0+mysqlnd installed.
>>> 
>>> ps -ax|grep mysql
>>> returns
>>> 86738 ??         0:09.59 /opt/local/lib/mysql55/bin/mysqld
>>> 96068 ??         0:00.58 /opt/local/lib/mysql57/bin/mysql
>>> 
>> The default socket path is probably incorrect.
>> 
>> Check my.ini, php.ini, etc.
> 
> For help fixing that, read the output of the command "port notes php72-mysql".
> 
> P.S: Please use the list addresses at lists.macports.org. The addresses at 
> the hostname you used were deprecated in 2016.
> 

Reply via email to