MySQL Empty cache flush

Source: Internet
Author: User

Empty cache Primary Execute flush command, must have reload permission


Flush hosts empties the host cache table. If the host changes IP, or receives an error host...is blocked, empty the host table. When connecting to a MySQL server, a specified host is connected to the database more than Max_connect_errors, MySQL will block the host's corresponding IP connection request for security purposes. You need to empty the host cache before attempting to connect.

Flush privileges The permissions from the database authorization table to the cache. When a new user is empowered, the command is executed and immediately takes effect.

Flush tables Mostly closes all open tables, and the operation empties the contents of the query cache.

Flush tables With read lock closes all open tables and adds a read lock to the tables in all databases until unlock tables is executed. This operation is commonly used for data backup

Flush status Reset Show status variable to 0

Flush Query Cache resets query caching to eliminate fragmentation and improve performance. This does not affect the existing data in the query cache, which is not the same as flush tables and reset query cache (which empties the contents of the query buffer).

Flush slave reset master and slave, let the database forget the primary data copy location, while deleting the downloaded relay log, not recommended, instead of reset slave

MySQL Empty cache flush

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.