be configured through the innodb_read_ahead_threshold parameter, 56 by default), InnoDB can read an extent (64 consecutive pages, if not compressed, each page is 1 MB ). However, it is of little significance to do so. An extent (64 pages) is very small. For a large database table, the next page is not necessarily in the same extent. The above is a good example. After reading page #3, InnoDB needs to read page #5230. Page #3 and page #5230 are not in the same extent, so linear pre-read technolog
temporary table(This process is not sorted)
After the copy is completed, the read operation of the original table is disabled, that is, the original table does not provide the read/write service at this time.
Perform the rename operation to complete the DDL Process
Inplace method (fast index creation, only for index creation and deletion)
Create a temporary frm File
Lock the original table. DML is not allowed and query is allowed.
Query the data in the order of clustered i
!
140920 19:34:27 [Note] innodb:starting crash recovery.
140920 19:34:27 [Note] innodb:reading tablespace information from the. ibd files ...
2014-09-20 19:34:27 EC4 innodb:operating system error number 2 in a file operation.
Innodb:some Operating system error numbers is described at
Innodb:http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
InnoDB:Error:could not open single-table tablespace file. \dota2\data_ab
) against (' Chinese Dream ' in natural language mode) limit 10;+------------+--------------------------------------------------+ | Version | Nickname |+------------+--------------------------------------------------+| 4.81 | China dream, dream China | | 4.63 | Chinese Dream my dream, my dream is the industry top | | 4.52 | Chinese Dream-my Dream | | | A Chinese Dream | | | Chinese Dream | | 3.17 | Chinese Dream | | 3.171 | AST China Dream | | 3.20201505 | Chinese dream of
forward operations.Test ADestroy XBB5.IBD tableThe data page was deletedInnodb_force_recovery = 1-3 Table Unavailable report error 2002 (HY000): Can ' t connect to local MySQL server through socket '/TMP/MYSQLD.SOC K ' Error innodb_force_recovery = 4-6 SELECT * Available, select COUNT (*) No lack of report error (HY000): Lost connection to MySQL server Duri ng Query ErrorTest TwoCreate transaction, do not commit[Email protected] 04:32:32>begin; Query
You can use create user or grant to create a user, which is also assigned relevant permissions. Revoke is used to delete user permissions and drop user to delete accounts.
$ Mysql-u root-ppassword: mysql> Create Database test; # create database query OK, 1 row affected (0.00 Sec) mysql> show databases; # Check whether the database is successfully created + ------------------ + | database | + -------------------- + | information_schema | MySQL | test | + ------------------ + 3 rows in SET (0.00 S
Http://www.rainsts.net/article.asp? Id = 988
You can use create user or grant to create a user, which is also assigned relevant permissions. Revoke is used to delete user permissions and drop user to delete accounts.
$ Mysql-u root-ppassword: mysql> Create Database test; # create database query OK, 1 row affected (0.00 Sec) mysql> show databases; # Check whether the database is successfully created + ------------------ + | database | + -------------------- + | information_schema | MySQL | test |
TestDB to [e-mail protected] ' 192.168.0.10 ' identified by ' dbapasswd ';OrGrant all on TestDB to [e-mail protected] ' 192.168.0.10 ' identified by ' dbapasswd ';//Open Manage permissions for database-specific tables (testdb.table1) in MySQLGrant all on Testdb.teable1 to [e-mail protected] ' 192.168.0.10 ' identified by ' dbapasswd ';//Open Manage permissions for partial columns of a database-specific table (testdb.table1) in MySQLGrant Select (ID, SE, rank) on Testdb.table1 to [e-mail protect
be granted permissions# # # requires Administrator Authorization # # #Grant Create session to starive;//Grant starive user permission to create session, that is, login permission# # # tablespace # #Grant Unlimited tablespace to starive;//grants starive users permission to use tablespacesGrant create tablespace to starive;//Grant starive permission to create a tablespaceGrant drop tablespace to starive;//grants
Modify the user rights that have been granted.We know:Grant is an authorization command, or permission modification action can be made after authorizationAttentionWhen modifying permissions, you can use identified by password to keep the previous password unchanged!Generally we grant authorization, use Identitied by, followed by the plaintext password, generated in the Mysql.user table query account information displayed is the cipher passwordBut grant authorization, you can also add password af
Original: Memory Meditation: Multiple names related to the mysterious SQL Server memory consumer.Original source: https://blogs.msdn.microsoft.com/sqlmeditation/2013/01/01/ memory-meditation-the-mysterious-sql-server-memory-consumer-with-many-names/For multiple memory consumers with different namesDo you ever wonder what memory grants are (memories grants)?What is the reserved (scheduled) memory for query e
Conditions:2 servers: A and B, the tables on a server are required to migrate to the B server.InnoDB table: Sysuser, record number: 351781.The following tests are performed in the MySQL 5.5.34.Start processing:1: Establish the Sysuser table on the B server and execute:
Copy Code code as follows:
Zjy@b:db_test 09:50:30>alter table Sysuser discard tablespace;
2: Copy the table space (IBD) of a server table to the corresponding
querying
Line-by-row data is copied from the original table to the staging table (this process is not sorted)
After the copy is finished, the original table is forbidden, that is, the original table does not provide read/write service at this time
Perform a rename operation to complete the DDL process
InPlace Mode (Fast index creation, only for index creation and deletion)
New frm temp file
Locks the original table, does not allow DML, allows queryin
Tags: trying mysql150210 10:29:16 InnoDB:Warning:trying to delete tablespace '/tmp/#sql2069_87b001_1d. IBD ',Innodb:but there is 1 flushes and 0 pending I/O ' s on itInnodb:loop 1016.150210 10:29:16 InnoDB:Warning:trying to delete tablespace '/tmp/#sql2069_87b001_1d. IBD ',Innodb:but there is 1 flushes and 0 pending I/O ' s on itInnodb:loop 1017.150210 10:29:16 InnoDB:Warning:trying to delete tablespace '/t
restoration because only frm files are available, but no ibd files are available. Although it does not affect the normal startup of the database, it is not very good after all.
2016-09-28 10:05:16 1989 [ERROR] InnoDB: Failed to find tablespace for table '"test1"."test1"' in the cache. Attempting to load the tablespace with space id 25.2016-09-28 10:05:16 7fc1ac33e700 InnoDB: Operating system error number 2 in a file operation.InnoDB: The error means
December 31 22:49 gb. ibd-Rw ----. 1 mysql 8658 December 31 22:49 qr. frm-Rw ----. 1 mysql 98304 December 31 22:49 qr. ibd-Rw ----. 1 mysql 8658 December 31 22:49 qy. frm-Rw ----. 1 mysql 98304 December 31 22:49 qy. ibd-Rw ----. 1 mysql 8658 December 31 22:49 tg. frm-Rw ----. 1 mysql 98304 December 31 22:49 tg. ibd-Rw
can restore it from a backup,InnoDB: then you can remove the .ibd file, and InnoDB will do a normalInnoDB: crash recovery and ignore that table.InnoDB: 3) If the file system or the disk is broken, and you cannot removeInnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnfInnoDB: and force InnoDB to continue crash recovery here.140424 9:34:06 [Note] Plugin 'FEDERATED' is disabled.140424 9:
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.