MySQL logs can be set up via MySQL's my.cnf file. However, if the log file is not cleaned or recycled for a long time, it will cause the log file to become bigger and larger, thus affecting the performance of MySQL. And the use of the RPM package
Wait problems caused by--mysql flush-------------------------------2014/07/13PrefaceIn the actual production environment, a large number of SQL statements are sometimes found to be in waiting for table. State, sometimes it may seem confusing, this
The FLUSH command is often used for MySQL database backup. The following is a summary of the syntax. If the server uses the -- log-error option, FLUSHLOGS will cause the error day.
The FLUSH command is often used for MySQL database backup. The
The FLUSH command is often used for MySQL database backup. The following is a summary of the syntax.
FLUSH syntax
FLUSH [LOCAL | NO_WRITE_TO_BINLOG] flush_option [, flush_option]...
If you want to clear some internal caches used by MySQL, you should
* SessionFlush:
* The session flush method mainly involves two tasks:
Clear temporary records
Execute SQL
* When is the session flush?
By default, when a transaction is committed (commit)
Display call flush
Before executing a query, for example,
Mysql monitoring methods are roughly divided into two categories: 1. connect to the mysql database and use showstatus, showvariables, and flushstatus to view various mysql performance indicators. 2. directly use mysqladmin to view its performance
Flush syntax
Flush[Local | no_write_to_binlog]Flush_option[, Flush_option]...
If you want to clearMySQLYou should useFlushStatement. To executeFlush, You must haveReloadPermission.
Flush_option
Hosts
Used to clear the host cache table.
Today I carefully read the flush syntax and often use the flush command at work. Here I will summarize it. MySQL flush syntax (clear or reload internal cache) flush flush_option [, flush_option]. If you want to clear some MySQL instances using
Differences between mysql status and variables First, you can use the following two commands to view the corresponding mysql system parameters.Show status like '% abc % ';Show variables like '% abc % '; However, many people do not understand the
There are many articles on the Internet that teach you how to configure a MySQL server. However, considering the differences in server hardware configurations and specific applications, the practices in these articles can only be used as a reference
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.