MySQL Forums
Forum List  »  Install & Repo

Connecting to MySql from PHP (MAC OS X)
Posted by: Malcolm Corti
Date: April 14, 2012 04:38AM

Hi,

I can connect to Mysql from PHP using
mysql_connect("127.0.0.1", username, password),

but mysql_connect("localhost", username, password) gives Mysql error "No such file or directory".

Any advice gratefully received!

M.

Options: ReplyQuote


Subject
Written By
Posted
Connecting to MySql from PHP (MAC OS X)
April 14, 2012 04:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.