MySQLのクエリ最適化について
-
はじめまして。
wordpressでサイトは作っていますが、MySQLについては殆ど知識がない素人です。
解決方法を必死に探しましたがどうしても見つからないので、お助けください。先日、レンタルサーバーからこのようなメールが来たので困っています(海外の無料レンタルサーバーです)
We have detected that your account サイトURL executed a slow MySQL query.
Domain: サイトURL
Username: ********
MySQL Database: *******
MySQL User: *******
MySQL Query: SELECT * FROM information_schema.COLUMNS WHERE TABLE_NAME = ‘wp_ewwwio_images’ AND COLUMN_NAME = ‘teSlow MySQL queries are not allowed, because you share server resources with thousands of other users and your long lasting MySQL queries are slowing down the entire server. Please optimize your MySQL queries as soon as possible.
Here are some good articles how to optimize MySQL queries:
http://www.google.com/search?q=optimize+mysql+queriesGood tips how you can optimize your scripts and make our servers run faster:
– Disable all parts of your website that allows anonymous or unregistered user posting, such as open forums, guestbooks, blog comments. These days automated software fills all open areas of websites with junk and spam content.
– Disable visitors monitoring and tracking (each move of your visitor makes database query)
– Disable all unused website modules.
– Disable internal stats for your website – use http://www.google.com/analytics/ for example.
– You may also logon to the phpMyAdmin and check which table has the most records. Then, if you think that this table does not contain any valuable information (for example contains logs, stats or cache), you can click on the
Empty
orTruncate
to clean it.つまりMySQLのクエリが遅いから最適化しなさい。
という事のようですが、どこをどう確認して、どのように最適化すればいいのでしょうか?それはphpMyAdminでできるのでしょうか?
- トピック「MySQLのクエリ最適化について」には新たに返信することはできません。