Hello folks.
I am v. much a beginner here. I've been following the very eloquent Kevin Yanks' tutorial on how to use PHP with MySQL - I have succesfully installed PHP and MySQL on a Mac running OSX, and can run PHP pages through my server, as well as MySQL from command line ..... but cannot connect to server from a PHP page!
Failure at the first hurdle.
get following error:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /Library/WebServer/Documents/index.php on line 1
from the following code:
$dbcnx = mysql_connect( "localhost", "petermcc", "georgiabassett" );
help will be greatly appreciated.
thanks in advance.
Pete McCabe![]()





Bookmarks