1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Webhosting Errors What Dos It Mean

Discussion in 'Web Hosting' started by SKULL, Mar 10, 2013.

  1. #1
    Well i have been with a website not naming the hosts name , but this is the 2nd time its happened.

    First time was without any traffic and this time with 280 people on my website.

    I promoted a image on facebook should a shared webhost be able to handle this kinda traffic?

    Can you tell me what the below means.

    I edited the database name and stuff to private as i do not want it public.

    LOGS:

    552388 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 20
    552389 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 20
    552391 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 20
    552393 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 20
    552394 private localhost private Query 3 Sending data SELECT * FROM images WHERE active=1 and id>526 ORDER BY id ASC LIMIT 1
    552395 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 20
    552396 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 20
    552399 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id>526 ORDER BY id ASC LIMIT 1
    552402 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id<526 ORDER BY id DESC LIMIT 1
    552405 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 1
    552406 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 1
    552407 private localhost private Query 2 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 1
    552408 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 1
    552409 private localhost private Query 3 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 1
    552410 private localhost private Query 2 Copying to tmp table SELECT * FROM images WHERE active=1 ORDER BY RAND() LIMIT 1
    552412 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552411 private localhost private Query 3 Updating UPDATE images SET hits='509' WHERE id='526'
    552413 private localhost private Query 3 Updating UPDATE images SET hits='509' WHERE id='526'
    552414 private localhost private Query 3 Updating UPDATE images SET hits='509' WHERE id='526'
    552415 private localhost private Query 3 Updating UPDATE images SET hits='16' WHERE id='525'
    552418 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552422 private localhost private Query 4 Updating UPDATE images SET hits='509' WHERE id='526'
    552423 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552424 private localhost private Query 4 statistics SELECT * FROM images WHERE active=1 and id='527' LIMIT 1
    552425 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552426 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552427 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552430 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552432 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552433 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552434 private localhost private Query 3 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552435 private localhost private Query 2 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552436 private localhost private Query 1 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
    552437 private localhost private Query 1 statistics SELECT * FROM images WHERE active=1 and id='526' LIMIT 1
     
    SKULL, Mar 10, 2013 IP
  2. superUPL

    superUPL Member

    Messages:
    36
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    28
    #2
    This looks to be SQL queries, but no errors. Have you tried to repair/optimize the database over phpmyadmin?
     
    superUPL, Mar 10, 2013 IP
    SKULL likes this.
  3. SKULL

    SKULL Prominent Member

    Messages:
    5,301
    Likes Received:
    303
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    1
    #3
    Well the host said the errors above was lagging and crashing the server.

    They are doing some optimizeing as of now.
     
    SKULL, Mar 10, 2013 IP
  4. superUPL

    superUPL Member

    Messages:
    36
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    28
    #4
    Good, it is a shared hosting? Maybe you should move to a VPS to have more control :)
     
    superUPL, Mar 10, 2013 IP
  5. SKULL

    SKULL Prominent Member

    Messages:
    5,301
    Likes Received:
    303
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    1
    #5
    Well looks like they fixed the issue now , my site was loading a lot of thumb images on each page so i turned them off and its all good now.
     
    SKULL, Mar 10, 2013 IP
  6. superUPL

    superUPL Member

    Messages:
    36
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    28
    #6
    Good that it was fixed, databases are always a problem, especially for a big amount of queries.
     
    superUPL, Mar 10, 2013 IP
  7. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #7
    I can almost guarantee you that it's the ORDER BY RAND() that is causing the issue. Instead of making MySQL do the work, use PHP shuffle() function against the result array, and pick out of the top 10 keys of that array.
     
    zacharooni, Mar 10, 2013 IP
    SKULL likes this.
  8. SKULL

    SKULL Prominent Member

    Messages:
    5,301
    Likes Received:
    303
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    1
    #8
    Ok so would this be the way the script has been set up, ie bad scripting/mysql to the script?
     
    SKULL, Mar 11, 2013 IP
  9. JoshDylan

    JoshDylan Well-Known Member

    Messages:
    133
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #9
    Zach is right on the money. It is in the scripting itself, you would need to have a function you are using swapped.

    Also, MySQL is not as big of a problem as some make it our to be, it only becomes a problem when your server is not properly administrated and routine optimization is not conducted.
     
    JoshDylan, Mar 11, 2013 IP
    SKULL likes this.