Jump to content

configuring path to mysql for php


cxpartners

Recommended Posts

hi, i was wondering if someone out there might be able to help.

a while ago i set up a php/mysql web application for an employer on Mac OS X. everything was fine until recently, when they upgraded the Mac operating system to Mac OS X Server 10.4 (which also upgrades php and mysql, hence screwing up configuration somewhat).

i've got php up and running, but it cant seem to find the mysql database (i expect it is looking for the new installation rather than the original). the error i get is something along the lines of:

[!--fonto:Courier New--][span style=\"font-family:Courier New\"][!--/fonto--]Warning: mysql_connect(): Can't connect to local MySQL server through socket ...[!--fontc--][/span][!--/fontc--]

can anyone suggest a way to explicitly point php back to the correct mysql path (assuming i find it...). is it possible using the

[!--fonto:Courier New--][span style=\"font-family:Courier New\"][!--/fonto--]./configure --with-mysql=.....[!--fontc--][/span][!--/fontc--] command?

cheers

Rich
Link to comment
https://forums.phpfreaks.com/topic/11857-configuring-path-to-mysql-for-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.