MySql 中文参考指南

MySQL Glossary

这些术语通常用于 MySQL 数据库服务器的信息中。

These terms are commonly used in information about the MySQL database server.

A

B

C

D

E

F

G

H

I

J

K

L

M

N

  1. If the value should ever change, there is potentially a lot of index maintenance to re-sort the clustered index and update the copies of the primary key value that are repeated in each secondary index.

  2. Even seemingly stable values can change in unpredictable ways that are difficult to represent correctly in the database. For example, one country can change into two or several, making the original country code obsolete. Or, rules about unique values might have exceptions. For example, even if taxpayer IDs are intended to be unique to a single person, a database might have to handle records that violate that rule, such as in cases of identity theft. Taxpayer IDs and other sensitive ID numbers also make poor primary keys, because they may need to be secured, encrypted, and otherwise treated differently than other columns.

O

P

Q

R

  1. An s-lock provides read access to a common resource.

  2. An x-lock provides write access to a common resource while not permitting inconsistent reads by other threads.

  3. An sx-lock provides write access to a common resource while permitting inconsistent reads by other threads. sx-locks were introduced in MySQL 5.7 to optimize concurrency and improve scalability for read-write workloads.

S

SX

X

S

Compatible

Compatible

Conflict

SX

Compatible

Conflict

Conflict

X

Conflict

Conflict

Conflict

S

T

  1. The shared InnoDB system tablespace, which is comprised of one or more ibdata files.

  2. A file-per-table tablespace, comprised of an individual .ibd file.

  3. A shared general tablespace, comprised of an individual .ibd file. General tablespaces were introduced in MySQL 5.7.6.

  4. Section 2.9.2.1, “Troubleshooting Problems Starting the MySQL Server”

  5. Section 8.2.22, “Troubleshooting Problems Connecting to MySQL”

  6. Section B.3.3.2, “How to Reset the Root Password”

  7. Section B.3.2, “Common Errors When Using MySQL Programs”

  8. Section 17.20, “InnoDB Troubleshooting”.

U

V

W

X

Y