|
Posted by Tony on 05/28/05 00:16
<pieter_hordijk@hotmail.com> wrote in message
news:1117215914.314713.220490@f14g2000cwb.googlegroups.com...
> Hi all,
>
>
> When i try to run a simple PHP script like:
> mysql_connect("localhost", "root", "password") or die (mysql_error());
> I get the following error:
> Can't connect to MySQL server on 'localhost' (10061)
>
> I've tried several different addresses like: localhost, 127.0.0.1,
> server01, 192.168.0.3 all with same result.
Have you tried plugging in the phrase (in quotes) to Google?
This is a fairly common problem with an easy fix posted on the MySQL manual
pages.
Go to Google & put in: "Can't connect to MySQL server on 'localhost'"
(quotes included) - the answer is one of the top two responses.
It has to do with the passwords & latest versions of MySQL - the page on the
MySQL site you find will tell you how to fix it.
[Back to original message]
|