|
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]
|