Syntax structure:[no_write_to_binlog | LOCAL] TABLE[, Tbl_name] ...Optimize table reorganizes the physical storage of tables data and indexes, reducing the IO efficiency when using storage space and improving access to tables. Optimize table
The following articles mainly describe three useful solutions for optimizing MySQL database queries, including how to correctly use related indexes and how to optimize query performance, the following describes how to optimize the query performance.
1. what can and should we optimize? Hardware operating system software library SQL Server (setup and query) application programming interface (API) Application 2. optimize hardware if you need a large database table (2 GB ), you should consider
Optimize the PHP website to run like MySQL. 1. what can and should we optimize?
Hardware
Operating System/software library
SQL Server (set and query)
Application programming interface (API)
Applications
II. optimize hardware
If you
Interview questions: how to optimize MYSQL database queries and mysql databases. Interview questions: how to optimize MYSQL database queries. mysql database 1. how to optimize the data types in MySQL. if you are a DBA, you are waiting for an
The following articles mainly introduce three very useful methods to optimize MySQL database queries. We all know that in MySQL database query optimization queries, database applications (such as MySQL (the best combination with PHP) actually mean
Periodic analysis Table
ANALYZE [Local | No_write_to_binlog] TABLE tbl_name [, Tbl_name]
Use this statement to parse and store the keyword distribution for a table. During profiling, a table is locked with a read lock. This is useful for MyISAM,
mysql| Compile | Optimize MySQL at compile time
If you install MySQL from the source code, note that the compilation process will have an important impact on the performance of future target programs, different compilation methods may get similar
OPTIMIZE TABLE is used to reclaim unused database space.
When rows of data on a table are deleted, the disk space occupied is not immediately reclaimed, the space is reclaimed after the Optimize table command is used, and the rows of data on the
Interview questions: Talk about how to optimize MySQL database query, MySQL database
1. Optimize data type
There are several types of data in MySQL, and if you are a DBA, you are rigorously checking the data types according to the principles of
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.