You are here: Re: [PHP] can't connect to mysql « PHP « IT news, forums, messages
Re: [PHP] can't connect to mysql

Posted by viraj on 10/13/81 11:27

if i'm not mistaken, there is nothing to do with the php coding. this
is totally because of your mysql server, simply your mysql server is
not started yet.

sometimes this may be a bug.
http://bugs.mysql.com/bug.php?id=11380

or try this
http://www.faqts.com/knowledge_base/view.phtml/aid/3948


~viraj.



On 9/13/05, Gustav Wiberg <gustav@varupiraten.se> wrote:
> Hi there!
>
> What code are you using? Try with the mysqli...
> http://se2.php.net/manual/en/ref.mysqli.php
>
> /G
>
> ----- Original Message -----
> From: "blackwater dev" <blackwaterdev@gmail.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, September 13, 2005 3:09 AM
> Subject: [PHP] can't connect to mysql
>
>
> I finally got php5 compiled with mysql but now I can't connect using
> mysql_connect without getting the error of:
>
> Warning: mysql_connect() [function.mysql-connect]: Can't connect to
> local MySQL server through socket '/tmp/mysql.sock' (2) in...
>
> I can ssh into the box and log in to mysql so I think it's running.
> Plus if I try to run mysqld, I get this error:
>
> ning] Asked for 196608 thread stack, but got 126976
> 050912 19:57:04 [ERROR] Can't start server: Bind on TCP/IP port:
> Address already in use
> 050912 19:57:04 [ERROR] Do you already have another mysqld server
> running on port: 3306 ?
> 050912 19:57:04 [ERROR] Aborting
>
> 050912 19:57:04 [Note] mysqld: Shutdown complete
>
> What could be wrong??
>
> Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.21/96 - Release Date: 2005-09-10
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

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

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