MySql database optimization in the end what the advantages are? ? (2)

  Before writing this article toot my heart to meditation (simple, popular, neat) * 10

  Singing is over, that is entered

  

     3.Memory storage engine

  In addition to storing information about the structure of a table .frm files on disk, and other data are stored in memory. Said the white point of the day you crash database, Memory table on the left of the table structure.

  Support indexes do not support transactions, the index has Hash and B-Tree formats

  Since we kept in memory, so the stored data in the Memory are fixed length of space, and does not support the type Text and BLOB fields

  Page-level locking (limit)

 

  Other database storage engines toot not in here enumerate, use the world face a broader scenario is mainly InnoDB and MyISAM

  

  Storage engine management

  show engines view supported by the database storage engine (to MySql5.5 for example)

  

       

  show variables like '% storage_engine%' to view the current storage engine

    

  

  show create table table name to view the construction of the table information (information contained storage engine)

  

     alter table storage engine = engine table name (Note that if the front and modifications are InnoDB foreign key, then the conversion will fail to MyISAM oh)

  

  create table table name (field name field type, ....) engine = storage engine name (specified storage engine when creating a table)

 

  Modify the default storage engine

  MySql installation directory /my.ini windows system files default-storage-engine = engine name

  Linux systems - / etc / my.cnf empathy

 

  Knowledge toot storage engine first introduced to it here, because toot also sell off now, so shallow it also hope a lot of pointing, the next beep will continue to learn about issues related to the index, but today almost 12 point, toot not a night owl, I hope you cherish life away from staying up late. (Do not know programmers brethren go to bed every day ??) Finally I wish you good night.

 

  

  

       

 

       

 

  

 

 

  

  

 

  

  

  

Guess you like

Origin www.cnblogs.com/ruishui30005921/p/11228485.html