Wishlist 0 ¥0.00

windows下,将mysql数据库存放在不同的硬盘(盘符)并使用

案例背景

要实现大数据的插入,默认数据库的存储盘为机械硬盘,故插入速度效率较低。
因此想要在将一个数据库建立在固态硬盘上,以此来提高插入效率。
但问题是,如果通过更改my.ini配置文件来指定数据的存储路径的话,因为我们需要将原有的、存储在机械硬盘的数据都要迁移到这个路径,这将会很麻烦,而且会大量占用固态硬盘本就不大的存储空间。
所以,我想mysql数据库能够映射到机械硬盘存储的数据信息,也能映射到在固态硬盘中存储的信息。

实现

该案例中,我的机械硬盘盘符为E,固态硬盘盘符为D。
通过查看my.ini配置文件得知,数据库存储路径为"E:/DataBase"

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: fuwu@800188.org