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!~
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. ...
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!~
If you're patient enough, here is the error message you're getting:
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).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
Good luck.
Last edited by Ron; 09-26-2005 at 10:11 PM.
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.
What do you mean? My hosting company? I'm with jaguar.
Originally Posted by masood
Uh oh.. I think you'd best open a support ticket and have them guide you through itOriginally Posted by Mindelude
![]()
Regards,
Wim Heemskerk
---
Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
And Gwaihir.net - The Middle-earth CCG store
Please check your config.php where you have setup remote mysql connection.Originally Posted by Mindelude
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
You probably have a line of code somewhere in index.php that looks something like
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:$somevar = mysql_connect('server','user','pass');
mysql_select_db('database');
Without seeing your actual code I can't provide you with much better help than that.PHP Code:... mysql_fetch_array($somevar) ...
--Jason
Thanks jason. On line 27 I get something like this.HTML Code:while ($myrow = mysql_fetch_array($result))
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
Right after that line try adding this code:PHP Code:$result = mysql_query('SELECT * FROM WHEREVER ...');
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.PHP Code:if(!$result) {
die(mysql_error());
}
--Jason
Jason, thank you very much. I have a error that my developer will fix. Thank you!!
Copyright © 2011 JaguarPC.com
Bookmarks