Manage Query Cache

You can check whether the query cache is present in your MySQL server using the following statement:

mysql> SHOW VARIABLES LIKE 'have_query_cache';

You can defragment the query cache to better utilize its memory with
FLUSH QUERY CACHE

RESET QUERY CACHE
statement removes all query results from the query cache.

To monitor query cache performance, use
SHOW STATUS
to view the cache status variables:

mysql> SHOW STATUS LIKE 'Qcache%';

  • Email, SSL
  • 0 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Related Articles

How does memory overcommit affect PostgreSQL?

In Linux 2.4 and later, the default virtual memory behavior is not optimal for PostgreSQL....

Installation of Geotrust True Site Icon

Installation of True Site icon: Per the subscriber agreement, you are required to install the...

Copy MySQL database to another server through shell?

Copying MySQL Databases to another server If you are using MySQL 3.23 or later, you can copy the...

Manage Tablespaces

Tablespaces in PostgreSQL allow database administrators to define locations in the file system...

Change the root password for a *nix server

In order to change the root password login to the server as root and type the following, then...