there is no mySQL forum here?
(it does say
SitePoint Forums: Resources, Design, HTML, CSS, PHP, ASP, MySQL and more for your web site.
in SP forum home page title…
just IN CASE anybody here can respond:
I just installed mySQL server on my mac (10.6.6); to set up followed instructions here:
Installing MySQL on Mac OS X « Thoughts by Techxplorer
am trying to connect with PHP, connection is failing, and have a feeling I have wrong server/host param…
$dbhost = “localhost:3306”;
$dbuser = “root”;
$dbpass = “<pswd>”;
$dbname = “mydb”;
$dbconn = mysql_connect($dbhost,$dbuser,$dbpass) or die(“Could not connect”);
print “Connected successfully<br>”;
tried with and without port… is ‘localhost’ correct for host? (in windows it would be, not sure about on the mac/unix…)
thank you…