Howdy! I didn%26#039;t see this in my Dummies book for the specific MySQL instance on Yahoo! Small Biz web hosting. I%26#039;m trying to connect, and get the error %26quot;Can%26#039;t connect to local mySQL server through socket %26#039;tmp/mysql.sock%26#039; (46)%26quot;... The string I%26#039;m trying to use is below, copied from Yahoo! Help. The table sits in the %26quot;mysql%26quot; database, and seems vanilla enough (for an ASP guy, anyway). But no workie. I know this is going to be a simple question, but after three days of noodle-scratchin%26#039;, thought I%26#039;d ask. Thanks!
%26lt;?php
$link = mysql_connect(%26quot;mysql%26quot;, %26quot;USERNAME%26quot;, %26quot;PASSWORD%26quot;);
mysql_select_db(%26quot;mysql%26quot;);
$query = sprintf(%26quot;SELECT * FROM ft4h_calls%26quot;);
$result = mysql_query($query);
... etc..
Newbie Yahoo! web hosting + PHP Connect question?
no idea.....sorry
No comments:
Post a Comment