Re: MySQL connects to localhost via socket reguardless

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux