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
mysql performance optimization · Discussion on the flush strategy of InnoDB buffer poolBackgroundWe know that InnoDB uses buffer pool to cache data pages that are read from disk to memory. Buffer pool is usually composed of a number of memory blocks
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
1. IntroductionIn the Oracle database, when a false operation is committed, we can flash the table back to the state before the error operation via the Flash back function provided by Oracle. There is no native flush back feature in MySQL, and when
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.
* 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,
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
In Mysql, Flush privileges mysql> update mysql. user set password = PASSWORD ('new password') where User = 'root'; mysql> flush privileges; mysql> exit; mysql needs flush privileges to refresh the MySQL system permission table after setting a user
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.