|
楼主 |
发表于 2013-9-21 20:08:07
来自手机
|
显示全部楼层
Hello,
0 v8 i$ y7 U$ O( r8 S+ s7 q7 _; s) |4 K: H% i; T, j
This message is to advise you of a temporary block placed on your database. The database was found to be consuming an inordinate amount of processor time, to the point of degrading overall system performance. While we do limit each account to no more than 25% of a system's CPU in our terms of service, we do not actively disable accounts until they greatly exceed that number, which is what happened in this case. Requests to this database may become degraded by limiting the maximum number of queries or connections for a limited amount of time, or if there are sustained issues, ultimately we may be forced to block access to this database until the issue has been resolved.
6 R! [0 z! m; n3 s0 y/ z3 E4 A6 B t/ r9 @6 _9 U0 z) r
Resolving this situation may be as simple as adding additional indexes to your database, optimizing the queries used, or something equally easy. If not, it may simply be a matter of moving this database to dedicated services, as it may have outgrown a shared environment.
2 W" u5 T. K5 }5 s* L
0 R$ q" ^# M9 @; M0 p/ n7 zIf you believe you have a solution to this overuse, we are happy to discuss the situation with you and possibly reinstate the database on the server. Otherwise, we will be happy to assist you with the upgrade process if a dedicated server is the most appropriate solution. Thank you, and we look forward to hearing from you shortly.
0 B! X6 h6 H& c- d( a+ t
% n! v* ^7 q" i, ^7 k4 T~~~
c( ~+ V# K. q WExcessive MySQL activity is caused by (a) a long-running process that locks a table, causing other queries to back up, (b) a query that is not optimized ][example: select all from ... and involving a large or complex query], (c) huge table copies/maintenance during peak hours.
4 E5 s& s G7 c. w1 @$ h7 J
& u$ y' D- e5 hNOTE:, the following are just possible fixes or suggestions, and are not endorsed or supported by HostGator. They are included in the hope that they may apply to your situation, and/or help you reduce the amount of resources your SQL queries consume. As always, it's best to backup any data before making any changes or adjustments. 8 b- ?& {) P* ~* H( e
6 {) j! G2 C6 r1 g' P$ U
First and foremost, you may need to optimize your tables. The frequency depends on the size and usage of the database, but most databases would benefit from doing something like this on a yearly basis: a) Enter your phpMyAdmin/MySQL control panel. Click on the database (not the table, the database name), and on the right hand column your tables should be listed. Scroll down till you see the .Check all. link. Click on that link, make sure all database tables are checked and then from the drop-down next to it, and carefully select .Optimize table.. : w$ {" `( f8 d$ {2 s& D8 J" g. k
6 h; Z: } B, e* u- P/ sAdditionally, adding indexes to your table(s) may improve performance. If you're not sure what you're doing, it's best not to modify any table; caution is recommended. There are various articles (http://www.developer.com/db/article.php/3667831/Four-Ways-to-Optimize-Your-MySQL-Database.htm and http://www.databasejournal.com/features/mysql/article.php/1382791/Optimizing-MySQL-Queries-and-Indexes.htm). It may be best to Google for something like [Your Software Name] MySQL indexes for suggestions.
! c' z& p2 B* [& Q/ y1 j7 E9 ~$ j u9 U6 \" `8 x' ?
If you reply back to this with your IP address (http://www.hostgator.com/ip.shtml) we will be more than happy to go ahead enable HTTP access for you, so that you can safely work on the script without it causing further issues. Please let us know how you would like to proceed. |
|