The company's recent MySQL always has a large number of lock tables. After analysis, it basically uses the MYISAM Table engine. A large number of reads and writes to a table by MYISAM will cause the entire MySQL table to be locked, as a result,
[MySQL] methods for obtaining metadata MySQL provides three methods for obtaining metadata of database objects: 1) show Statement 2) query related tables from INFORMATION_SCHEMA database 3) command line program, for example, mysqlshow and mysqldump
The count query efficiency of mysql from innodb to MyIsam greatly improves bitsCN. the count query efficiency of commysql from innodb to MyIsam has been greatly improved recently, after the company has a business log table that exceeds 5 million,
I. INTRODUCTION myisampack is a tool for compressing tables using the MyISAM engine. generally, it compresses 40% ~ 70%. when you need to access data, the server will read the required information into the memory. Therefore, the performance will be
With MySQL, you can choose between the three basic database tables. When creating a table, you can tell MySQL which table type it should use for the table. MySQL will always create a. frm file to save the table and column definitions. Indexes and
Original works of Lin Bingwen Evankaka. Reprinted please indicate the source http: blogcsdnnetevankaka Abstract: This article focuses on the definition, principle, and usage, creation, and deletion of visual charts in MySql.
1. View overview
A view
Data fragmentation in mysql is closely related to data deletion. when deleting data, it will inevitably lead to discontinuous blank space in the data file. for deletion of a small amount of data, it does not produce much space. If you delete a large
This article mainly introduces how to use the ALTER command in MySQL, which is the basic knowledge in MySQL beginners. it is very useful for anyone who needs it to refer to the ALTER command in MySQL, if you want to change the table name, table
Obtain database and table information:
Mysql> connect;
Mysql> show databases;
Mysql> show tables;
Mysql> show tables from db_name;
Mysql> show columns from tbl_name;
Mysql> show index from tbl_name;
Mysql> show table status;
Mysql> show
MyISAMAdvantage: high speed and low disk space usage. You can check the size of the corresponding files (folders) in the operating system for the disk usage of a database or table, you can also check the SQL statement show table status.Disadvantage:
A large amount of deleted data will inevitably result in discontinuous white space in the data file, and when the data is inserted, the white space will be exploited.
There are different ways to defragment the storage engine.
MyISAM
You can do this
Mysql connection operation class on the phpmysql website/* obtain the time of the last updated table in the SQL statement. if there are multiple tables, return the time of the latest table */
Mysql connection operations on the php mysql website
Mysql Study Notes 4 (view)
View
Operations on views not only simplify queries, but also improve the security view. In essence, a virtual table is similar to a real table, contains a series of columns and row data with names. However, a view does
Summary of MySQL methods for obtaining database and table information, mysql Summary
Obtain database and table information:
Mysql> connect; mysql> show databases; mysql> show tables from db_name; mysql> show columns from tbl_name; mysql> show
Source: http://blog.rds.aliyun.com/2014/05/23/%E4%B8%80%E4%B8%AA%E7%94%A8%E6%88%B7sql%E6%85%A2%E6%9F%A5%E8%AF%A2%E5 %88%86%e6%9e%90%ef%bc%8c%e5%8e%9f%e5%9b%a0%e5%8f%8a%e4%bc%98%e5%8c%96/Problem descriptionA user reflects that the first line of an
A large amount of data deletion is bound to cause discontinuous blank space in the data file, and when the data is inserted, the blank space is used.Different storage engines are not the same way of defragmenting. MyISAMThe following methods can be
For MySQL databases, you must use the InnoDB engine if you want to use transactions and row-level locks. If you want to use Full-text indexing, you must use MyISAM. InnoDB's practicality, security, stability is higher but the efficiency than myisam
ALTER TABLE allows you to modify the structure of an existing table. For example, you can add or delete columns, create or eliminate indexes, change the type of existing columns, or rename columns or the table itself. You can also change the
MySQL Storage engine Storage Engine IntroductionData in MySQL is stored in files (or memory) in a variety of different technologies. These different technologies and associated functions are called storage engines in MySQL.MySQL offers a number of
first, the basic operation of the databaseshow databases; List databasesUse database_name; Using the database_name databaseCreate Database Data_name; To create a database named Data_nameDrop database data_name; Delete a database named Data_name:Use
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.