Accelerate mysqlindex query with ssd hard drive

Source: Internet
Author: User
Tags mysql index
For more information about how to use an ssd hard drive to accelerate mysqlindex, see www.javaarch.netjiago ushiindex.htm? If the data volume is large and the ssd capacity is not large, you can save the index data to the ssd to store the table data on the old hard disk .? So how can we make mysql build index on ssd and

Use ssd hard drive to speed up mysql index query for more articles see: http://www.javaarch.net/jiagoushi/index.htm? If the data volume is large and the ssd capacity is not large, you can save the index data to the ssd to store the table data on the old hard disk. ? So how can we make mysql build index on ssd and

Accelerate mysql index query using an ssd Hard Disk


For more articles, see: http://www.javaarch.net/jiagoushi/index.htm?


If the data volume is large and the ssd capacity is not large, you can save the index data to the ssd to store the table data on the old hard disk.

?

So how can mysql build index on ssd and use index data on ssd?

?

1. Create several directories on ssd

?

Mkdir/ssd/mysql_indexes

Mkdir/ssd/mysql_indexes/my_big_db_name

Chmod 700? /Ssd/mysql_indexes

Chown-R mysql: mysql/ssd/mysql_indexes

?

2. If you use the MyISAM engine, you can add the following configuration in mysql configuration to accelerate index reconstruction.

?

[Mysqld]

Myisam_repair_threads = 10

?

3. Finally, execute the following query to allow mysql to switch the index data location of the table.

?

Alter table my_table index directory = '/ssd/mysql_indexes/my_big_db_name ';?

?

This must wait until the index of mysql is rebuilt to make it obvious that the database is getting faster.

?

Author: zhongweijian posted on 18:23:34 Original article link

Read: 0 comments: 0 view comments

Original article address: use an ssd hard drive to accelerate mysql index query. Thank you for sharing it with me.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.