Take notes for MySQL
Chapter 01
SQL (pronounced S-Q-L or sequel) is short for structured query language.SQL is a language specifically used to communicate with databases.
Chapter 02Mysql-u user-P [Password] [-H host-P port]
Chapter 03Show
MySQL's built-in engine must be enough, but in some cases, other engines may be more suitable for completing tasks than they are used at hand. If you want to, you can even use MySQL ++ API to create your own database engine, just like hitting the
If you are a racing driver, and you can change the engine immediately by clicking the button without driving the car to the garage, What would it feel like? What MySQL database does for developers is like changing the engine by pressing a button. It
MySQL Optimization-Delete Insert update and mysql optimization insert update
Reprinted please indicate the source: http://blog.csdn.net/l1028386804/article/details/46581769
Insert
Insert multi-row query results into the table
Syntax
INSERT INTO
There is only one reason for MySQL to show that The table is full. The corresponding table data capacity has reached The system limit. For specific restrictions, see the official manual: http://dev.mysql.com/doc/refman/5.1/zh/introduction.html?table-
1 engine description
The local MySQL database must use the FEDERATED storage engine to access the data in the table of the remote MySQL database. it is similar to the Database Link (DBLINK) in Oracle ). to allow this storage engine, use --
Mysql allows remote connection,
I. Overview
This article describes how to create a remote connection table through the federated storage engine.
Test environment: mysql 5.6.21
Step 2
Enable federated storage engine
Check whether the federated
Mysql database engine, mysql
I. Database Engine
Database EngineIs a core service used to store, process, and protect data. The database engine can be used to control access permissions and quickly process transactions, so as to meet the
MySQL foreign key details, MySQL key details
Recently, when I was studying Hibernate, I was always confused by foreign keys. Moreover, my MySQL foreign key learning is not very solid, so in order to better master Hibernate and MySQL, therefore, I
MySQL remote connection and mysql connection
Overview
This article describes how to create a remote connection table through the federated storage engine.
Test environment: mysql 5.6.21
Procedure
Enable federated storage engine
Check whether the
Show tables or show tables from database_name;Explanation: displays the names of all tables in the current database.
Show databases;Explanation: displays the names of all databases in mysql.
Show processlist;Explanation: displays all processes
The default capacity of the mysql table is 4 GB. When loaddata is used, an error occurs when the file load 2 GB. However, if the myd file is 4 GB, I don't know what is going on. Expand the table capacity first. First check the table status: show
Innodb_adaptive_flushing= {ON | OFF}Set whether to allow the MySQL server to dynamically adjust the dirty pages in the InnoDB buffer pool based on the workload. The purpose of dynamically adjusting the write speed is to avoid IO activity spikes. The
Restrictions on InnoDB table objects
Restrictions on InnoDB table objects:
Maximum and minimum
InnoDB log files cannot exceed 512 GB
InnoDB system tablespace requires at least 10 MB Space
The default data page size in the database is 16 kb.
MySQL -- eq_range_index_dive_limit Parameter Learning, rangeoffsetlimit
The official documents are described as follows:This variable indicates the number of parameter ity ranges in an Inter ity comparison condition when the optimizer shold switch
Database Engine Introduction
The MySQL Database Engine depends on how MySQL is compiled during installation. To add a new engine, you must recompile MYSQL. By default, MYSQL supports three engines: ISAM, MYISAM, and HEAP. The other two types of
MySQL query optimization and MySQL Optimization1. Introduction
A good web application has excellent access performance. MySQL database is an integral part of web applications and an important part that determines their performance. Therefore, it is
1. Number of mysql PROCESSES IN THE SYSTEM
Ps-ef | grep "mysql" | grep-v "grep" | wc-l
2. Slave_running
Mysql> show status like 'slave _ running ';
If the system has a slave server, this value indicates the slave server health.
3.
Show databases // list MySQL Server databases. Show tables [from db_name] // lists database data tables. Show table status [from db_name] // lists data tables and table status information. Show columns from tbl_name [from db_name] // lists the table
| Innodb_adaptive_hash_index | on | whether to enable adaptive hash Indexes| Innodb_additional_mem_pool_size | 1048576 | size of the memory pool in which InnoDB stores data directory information and other internal data structures|
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.