# mysql\_connect(): Can't connect error

**URL:** <https://forum.kirupa.com/t/mysql-connect-cant-connect-error/249852>\
**Category:** programming\
**Created:** [January 23, 2008, 3:19am UTC](https://forum.kirupa.com/t/mysql-connect-cant-connect-error/249852 "2008-01-23T03:19:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [January 23, 2008, 3:19am UTC](https://forum.kirupa.com/t/mysql-connect-cant-connect-error/249852/1 "2008-01-23T03:19:26Z")

</div>

any one ever encounter this problem?

ive got a test site ive been workin on for a friend and it works good excpt once ur loged in u cant get to any other page for some reason the user will get this error

```auto
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/n/e/o/neokrasher/html/impact/admin/resources/includes/connection.php5
Database connectionfailed: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)

```

it says i cant connect but i am using update and insert querys all over the place. i find it odd that it cant connect

here is the link  
[www.anthonydevito.net/impact](http://www.anthonydevito.net/impact)

user name and pw is  
manager1  
manager1

i checked the connection.php and there doesnt seem to be any problems.

Any one have any ideas?
