Re: Not bale to connect to MySQL with PHP [message #169646 is a reply to message #169645] |
Tue, 21 September 2010 13:55 |
Peter H. Coffin
Messages: 245 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Tue, 21 Sep 2010 14:49:47 +0200, Kim André Akerø wrote:
> På Tue, 21 Sep 2010 00:05:54 +0200, skrev MikeB <mpbrede(at)gmail(dot)com>:
>
>> Denis McMahon wrote:
>>> On 20/09/10 20:32, MikeB wrote:
>>>> [snip]
>>>
>>> can you telnet to the mysql port on the server from a terminal session
>>> on the server? eg telnet to the server, and then on the server "telnet
>>> localhost 3306" (or whatever your mysql port is). What happens?
>>
>> I think this is just for the case where the two are on different
>> servers, right?
>
> Only the first step of the two. Since this is on your local computer, just
> open up a command window and enter the command "telnet localhost 3306" -
> and to repeat Denis' question: What happens when you do this?
>
> If you still get an error (as in "connection refused"), then the MySQL
> server software probably isn't running.
No.
"localhost" to MySQL is not a network socket that you can telnet to. It
is an OS socket (or equivelent). "Localhost" would be a network socket,
but that's *not* what the OP asked about.
Which is why this may belong on a MySQL group, or may belong on a group
for whatever webserver is running, but the odds of it being an actual
PHP problem are very, very slim.
--
15. I will never employ any device with a digital countdown. If I find
that such a device is absolutely unavoidable, I will set it to
activate when the counter reaches 117 and the hero is just putting
his plan into action. --Peter Anspach's Evil Overlord list
|
|
|