You are here: Re: mysql connect failure « PHP Programming Language « IT news, forums, messages
Re: mysql connect failure

Posted by Tim Roberts on 05/05/06 10:28

"Paul Lautman" <paul.lautman@btinternet.com> wrote:

>I have 2 scripts that both start with:
><?php
>// Database Connection
>include 'connect.php';
>
>One of them is fine, but the other gives the error:
>
>Warning: mysql_connect(): Can't connect to local MySQL server through socket
>'/var/lib/mysql/mysql.sock' (111)
>
>Since the same file is being included both times, I can't see why it should
>fail in one case.
>
>Any ideas anyone?

Two different scripts on one machine, or one script on two different
machines? If it is the latter, then one machine isn't running MySQL
locally.

If the former, are these both running as CGI or within Apache?
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация