Re: Not bale to connect to MySQL with PHP [message #169649 is a reply to message #169645] |
Tue, 21 September 2010 14:47 |
MikeB
Messages: 65 Registered: September 2010
Karma:
|
Member |
|
|
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.
>
>
I tried it and it seems to connect to something. I get this:
telnet localhost 3306 and then:
> B
> 5.1.49-community-lo6IJyD%*☻L9wl8qR&cA[(
and a few seconds later I get:
> Connection to host lost.
>
> C:\Users\Mike>
|
|
|