# MySQL can't find localhost

**URL:** https://forum.kirupa.com/t/mysql-cant-find-localhost/125315
**Category:** Uncategorized
**Created:** [October 12, 2004, 2:55pm UTC](https://forum.kirupa.com/t/mysql-cant-find-localhost/125315 "2004-10-12T14:55:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GFX\_Wiz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gfx_wiz/32/815_2.png) [@GFX\_Wiz](https://forum.kirupa.com/u/GFX_Wiz)
#### Post date: [October 12, 2004, 2:55pm UTC](https://forum.kirupa.com/t/mysql-cant-find-localhost/125315/1 "2004-10-12T14:55:21Z")

</div>

Hey guys…I am hoping you can help me out. I just followed this great tutorial:

```
[http://www.kirupa.com/web/apache_php.htm](http://www.kirupa.com/web/apache_php.htm)

```

and now MySQL can’t find the localhost. I am running Windows XP Professional and this is on my local machine. Here’s the steps I took:

```
I first installed MySQL into this directory:

C:\mysql

```

I then installed MySQL as a service by running “mysqld-nt -install”. I also updated my PATH line so I could access MySQL from the command prompt by simply typing “mysql”

Everything worked fine with MySQL after the above steps. Then I followed all the steps in the tutorial, installing Apache and php to

```
C:\phpServer\Apache2 and
C:\phpServer\php respectively.

```

I created the test page and a phpinfo page and both work great. However. Now when I try to access MySQL from the command prompt, I get this error: “ERROR 2003: Can’t connect to MySQL server on ‘localhost’ (10061)”

I am not going to assume that I know a solution as I am installing this to attempt my first php/database project. Any help is greatly appreciated.

```
thanks!
```
