Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Warning: too many connections

    The setup is this:

    In my public_html dir. i have two php pages and they are gallery.php and detail.php. In the directry above this i have another small php script called dbConnet.php.

    Both the gallery and detail pages have in them the following:

    PHP Code:
    include "../dbConnect.php"
    After that line they start to query and do their thing. The dbConnect.php file as you'd expect has this:

    PHP Code:
    <?php

    mysql_connect
    ('127.0.0.1','username,'pass');

    mysql_select_db('
    my_database);

    ?>


    So the scenrio is that the user goes to a gallery pics a thumbnail of a product and up comes a pop up with a bigger versiona dn some detail (detail.php) I have been using it on my local machine for a while and got it all to the point where o though everything was fine but now a couple days after putting up on a host i get a friend show me this from my site




    ? It only does it sometimes but it's there and it's not good.

    I'm not sure what to do?


    mat,

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    British Columbia
    Posts
    235
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This should help:
    http://www.mysql.com/doc/en/Too_many_connections.html

    The problem is that there are more the the specified amount of users trying to access the database. Just increase the number.

  • #3
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As it turns out, After contacting the host apparently someone was using a script that takes up all connections anyway they have disabled it and everything seems to be o.k.


    Cheers, Mat


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •