Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
jmarfurt
Starting Member
2 Posts |
Posted - 2007-08-06 : 10:22:40
|
Hi, I have absolutely no knowledge of PHP or SQL .... I moderate a PHPBB forum at www.savingshelterpets.comOur web host (SiteGround) has taken our site down temporarily because we are overloading the server. I have no idea how to fix the problem, so hopefully someone here can help me out! SmileyPHP version 4.4.4MySQL version 5.0.27-standard-logHere's the info sent to me by SiteGround (I don't understand a word of it!): quote: Upon further investigation, it turned out that the following queries in your account are slow and heavily consume server resources:# User@Host: savingsh_phpb1[savingsh_phpb1] @ localhost []# Query_time: 4 Lock_time: 0 Rows_sent: 1 Rows_examined: 1284use savingsh_phpbb2;SELECT user_id, username, user_password, user_active, user_level, user_login_tries, user_last_login_tryFROM phpbb_users-- delete from rs_stat_ip where platnost_do<'2007-08-03 16:49:43';# User@Host: savingsh_phpb1[savingsh_phpb1] @ localhost []# Query_time: 5 Lock_time: 3 Rows_sent: 1 Rows_examined: 0use savingsh_phpbb2;SELECT * FROM phpbb_optimize_db;# User@Host: binaryte_lhlp1[binaryte_lhlp1] @ localhost []-- # Time: 070803 16:50:27# User@Host: savingsh_phpb1[savingsh_phpb1] @ localhost []# Query_time: 4 Lock_time: 2 Rows_sent: 1 Rows_examined: 0use savingsh_phpbb2;SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachmentsFROM phpbb_topics t, phpbb_forums fIn order to have the limitations removed, please optimize your script.
|
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-08-06 : 10:29:43
|
| This Forum is specifically for Microsoft SQL ServerPost your question at www.mysql.comMadhivananFailing to plan is Planning to fail |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2007-08-06 : 10:31:12
|
| this is a Microsoft SQL server site. we don't deal with MySql.that is why i doubt you will get the proper help you need here.you should probably look over at dbforums. they have a MySql forum.i can tell you though that your queries are slow because you have no where's in your first or last select.that means you're selecting all data unnecessarily._______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenp |
 |
|
|
jmarfurt
Starting Member
2 Posts |
Posted - 2007-08-06 : 10:39:47
|
LOL Told you I didn't know what I'm doing! I'm so embarrassed.Thank you for pointing me in the right direction....I'm off to try the MySQL forums! ;) |
 |
|
|
|
|
|
|
|