"Lost connection to MySQL server during query" - Database or Hosting Issue?

Discussion in 'MySQL' started by andheresjohnny, Nov 29, 2006.

  1. #1
    I'm having an issue when I try to bring up a sitemap on several of my sites.

    They all have the following in common:

    1. All hosted on Godaddy
    2. All running Wordpress
    3. All have 3,000-4000 posts

    On these sites when I try to bring up the sitemap I very regularly get the following error message:

    "WordPress database error: [Lost connection to MySQL server during query]"



    This occurs after a long reponse time.

    On other sites I have the exact same setup, however there are only 200-500 posts. In those cases I don't get a MYSQL error.


    My question is what would cause this database error. Bad data? Bad Hosting?

    I'd appreciate any help.


    (below are 2 links. The first is to the page that regularily gives that error message. The second is to a page that does not give that error message.)

    http://www.data-entry-jobs.net/sitemap-data-entry-jobs (4000 posts)

    http://www.paid-surveys-free.com/sitemap-paid-surveys (250 posts).
     
    andheresjohnny, Nov 29, 2006 IP
  2. Forum9.com

    Forum9.com Peon

    Messages:
    217
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i think this is a slow query, may be problem in your query execution time
     
    Forum9.com, Nov 29, 2006 IP
  3. smallbuzz

    smallbuzz Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How long does the sql take if you run it directly in Query Browser?
     
    smallbuzz, Nov 29, 2006 IP
  4. fatmagoo

    fatmagoo Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your answer is partly here:
    [1. All hosted on Godaddy]

    Godaddy is pretty crappy hosting.

    Don't know much about wordpress, but the query could be being dropped due to lack of resources - are the tables indexed properly - is the server responsive otherwise? Are you limiting the data returned on a per page basis, or is the query getting the whole lot? Lots of variables!
     
    fatmagoo, Nov 29, 2006 IP
  5. andheresjohnny

    andheresjohnny Well-Known Member

    Messages:
    964
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    120
    #5
    Thanks folks. You've given me a few things to look at.
     
    andheresjohnny, Nov 29, 2006 IP