You are here: Re: max_connections exceeded « PHP SQL « IT news, forums, messages
Re: max_connections exceeded

Posted by J.O. Aho on 02/07/07 12:02

Phil Steer wrote:
> I have just had a mySQL database added to my hosting account (NetNation) and
> am experimenting with building an HTML page from the database using PHP.
> However, although my test works (the page displays as expected), when I
> request the test page multiple times I get the error:
>
> Warning: mysql_connect(): User 'username' has exceeded the 'max_connections'
> resource (current value: 10)
>
> It then takes hours for the connections to timeout.

There ain't anything wrong with your code,as I can see, it should work as
thought, would think the problem is at the server, I would suggest you try
with mysql_pconnect() and see if you can reuse connections and that way get
around troubles. http://www.php.net/manual/en/function.mysql-pconnect.php


--

//Aho

 

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

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