SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Dec 2005
    Posts
    964
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    To many connections?

    I have a mysql database on a dedicated server and are using it for a smartphone game to handle my data. The thing is that it is getting quite popular and I have many requests on the the database so sometimes it comes with a "To many connections"? How should i handle this? I use mysql_close(); on every php page I use, but still got the problem...

    Please help and thanks in advance

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    4,909
    Mentioned
    96 Post(s)
    Tagged
    0 Thread(s)
    Are you setting up mysql_connect() or mysql_pconnect() ?

    In any case you should consider migrating over to using either PDO or the mysqli extension
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  3. #3
    SitePoint Guru
    Join Date
    Dec 2005
    Posts
    964
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SpacePhoenix View Post
    Are you setting up mysql_connect() or mysql_pconnect() ?

    In any case you should consider migrating over to using either PDO or the mysqli extension
    Using mysql_connect(). Is it easy to migrate and why is that a good idea?


Bookmarks

Posting Permissions

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