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.