In my app, I use MySQL for the database backend (the app uses multiple MySQL databases, all use MyISAM tables). For performance reasons, I want to move one of the databases to a solid state drive (DRAM based), but only that database, the other databases should stay on the SATA drive I use. As you know, in MySQL you can only specify the data directory in MySQL settings and you don't have control over where every database is saved. Is there any workaround for this? I'm hoping that there might some trick I'm not aware of that can get the job done.
Any suggestions would be really appreciated, thanks
Assuming your SSD has the drive letter G:\ you move your specific database subdirectory to the new drive and create a symlink in the 'datadir' directory.
Best wishes, Fabian
Assuming you are running on a Linux server and are set up for seperate files for each database, you could try moving the database subdirectory and symlinking the database file subdirectory.
Suppose that the MySQL data directory is C:\mysql\data and you want to have database foo located at D:\data\foo. Set up a symlink using this procedure:
For more information, http://dev.mysql.com/doc/refman/5.0/en/windows-symbolic-links.html