Hosting has disabled my database.

Discussion in 'MySQL' started by mgrohan, Feb 13, 2008.

  1. #1
    Have purchased a lyrics database from this forum, but my host has informed me the MYSQL database queries are too intensive, and have disabled them.

    Is there an easy fix to the above? Sorry but i know nothing of MYSQL :(

    Would greatly appreciate any help.
     
    mgrohan, Feb 13, 2008 IP
  2. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #2
    You have to get someone who knows SQL to do it for you. Your database structure needs to be changed. After you do that you'll have to change the script you're using to support the new database structure.
     
    SoKickIt, Feb 13, 2008 IP
  3. Spider-Man

    Spider-Man Banned

    Messages:
    2,684
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Who were you hosting with? I know Hostgator shut down sites for having too-intensive databases.
     
    Spider-Man, Feb 13, 2008 IP
  4. mgrohan

    mgrohan Active Member

    Messages:
    671
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Guess i will need to head over to one of the freelance sites..

    Host for this website, is dreamhost..
     
    mgrohan, Feb 13, 2008 IP
  5. vithca

    vithca Guest

    Messages:
    278
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You just need an index on column 'artist'.
     
    vithca, Feb 18, 2008 IP
  6. ntp

    ntp Banned

    Messages:
    221
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You will need to full text more than artist, unless the artist field is the only one to query.

    You can try this: $q=artist

    $query = "SELECT Lyrics.* ";
    $query .= ",MATCH(artist) AGAINST (' . $q . ' IN BOOLEAN MODE) ";
    $query .= "FROM Lyrics ";
    $query .= "WHERE MATCH(artist) AGAINST (' . $q . ' IN BOOLEAN MODE) ";
    $query .= "Order BY Title ASC ";
    $query .= "LIMIT 0 , 25 ";
     
    ntp, Feb 19, 2008 IP
  7. mjesales

    mjesales Peon

    Messages:
    326
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    if your host will run it - i've heard good things about the sphinx fulltext search engine. I have similiar issues with the fulltext searches on our site. And its indexed as well and on a clustered host. it still crashes some times.
     
    mjesales, Feb 26, 2008 IP