Re: MySQL connects to localhost via socket reguardless
| From: | Josip Dzolonga | Date: | Sun, 10 Apr 2005 10:32:33 +0000 |
| Subject: | Re: MySQL connects to localhost via socket reguardless | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39159@lists.php.net to get a copy of this message | ||
Jeffrey D. Means wrote:
I am trying to connect to a DB on a difrent server but mysql keeps connecting to the local server via the socket. What is going on?
-- code snippet--
$connection = mysql_connect("mysql.meanspc.com:3306", "Removed", "Removed");
Well try some debugging :
$connection = mysql_connect(...) or die(mysql_error());
What do you get ?
--
Josip Dzolonga
http://josip.dotgeek.org
jdzolonga[at]gmail.com