Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 13 of 13

This is a discussion on Help. in the Shared & Semi-Dedicated forum
Seems that my site has been running really slow. What could be causing this? What I mean is for me, the site bearly won't load. ...

  1. #1
    JPC Member
    Join Date
    Sep 2005
    Posts
    20

    Help.

    Seems that my site has been running really slow. What could be causing this? What I mean is for me, the site bearly won't load. Please list all possibilities. Thanks!~

  2. #2
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    what is your sites address?

  3. #3
    JPC Member
    Join Date
    Sep 2005
    Posts
    20

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    If you're patient enough, here is the error message you're getting:
    Code:
    b>Warning</b>:  mysql_connect(): Lost connection to MySQL server during query in <b>/home/YOURDIRECTORY/public_html/config.php</b> on line <b>29</b><br />
    I cannot connect to the database because: Lost connection to MySQL server during query
    Perhaps there's a problem with MySQL, perhaps you've got a bad query in there that's just eating up the server and hanging around until it times out. I don't know, but if the code is ok, you could open up a ticket to support with the type of error you're getting (and perhaps this snippet of an error message).

    Good luck.
    Last edited by Ron; 09-26-2005 at 10:11 PM.

  5. #5
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    The problem is with your remote mysql server (at another hosting provider) which is not responding and appears to be down. You may like to move your database over to the server here. If you need help with transferring your database, please open a support ticket.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  6. #6
    JPC Member
    Join Date
    Sep 2005
    Posts
    20
    What do you mean? My hosting company? I'm with jaguar.

  7. #7
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by masood
    If you need help with transferring your database, please open a support ticket.
    Quote Originally Posted by Mindelude
    What do you mean? My hosting company? I'm with jaguar.
    Uh oh.. I think you'd best open a support ticket and have them guide you through it
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  8. #8
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Quote Originally Posted by Mindelude
    What do you mean? My hosting company? I'm with jaguar.
    Please check your config.php where you have setup remote mysql connection.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  9. #9
    JPC Member
    Join Date
    Sep 2005
    Posts
    20
    Oh, my bad. I'm sorry. I got the slow problem done but I still get an error

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/jflashin/public_html/index.php on line 27

  10. #10
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You probably have a line of code somewhere in index.php that looks something like

    PHP Code:
    $somevar mysql_connect('server','user','pass');
    mysql_select_db('database'); 
    On line 27 you have a call to mysql_fetch_array(). Make sure that whatever comes before the = sign in the mysql_connect() line is between the parens after mysql_fetch_array.

    PHP Code:
    ... mysql_fetch_array($somevar) ... 
    Without seeing your actual code I can't provide you with much better help than that.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  11. #11
    JPC Member
    Join Date
    Sep 2005
    Posts
    20
    Thanks jason. On line 27 I get something like this.
    HTML Code:
    while ($myrow = mysql_fetch_array($result))

  12. #12
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Sorry, my example from last night was incorrect. I forgot to include the actual query, which returns the $result variable. Somewhere before line 27 there should be a line that looks something like

    PHP Code:
    $result mysql_query('SELECT * FROM WHEREVER ...'); 
    Right after that line try adding this code:
    PHP Code:
    if(!$result) {
        die(
    mysql_error());

    It looks as though your query isn't running correctly and this code will help you understand why. What it will do is check that $result actually contains query result and, if it doesn't it will print an error message to the browser and then stop the script. Once you see that error message you should be able to get an idea of what's going wrong.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  13. #13
    JPC Member
    Join Date
    Sep 2005
    Posts
    20
    Jason, thank you very much. I have a error that my developer will fix. Thank you!!

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
  •