The solution for locating MyISAM tables on another volume is to use symbolic links.
The symbolic link still resides under the default data directory, with other schemas and tables. But the real file that the symbolic link references may be on another filesystem.
Read https://dev.mysql.com/doc/refman/8.0/en/symbolic-links-to-tables.html for details.
Note that this feature is disabled by default in MySQL 8.0, and it is deprecated and there's a note on that manual page that the feature may be removed in a future version of MySQL.
The preferred solution is to stop using MyISAM (there are many good reasons for this), and use the InnoDB storage engine instead. InnoDB has been the default storage engine since MySQL 5.5 in 2010, so I'm a bit surprised that you are still using MyISAM.
In MySQL 8.0, InnoDB supports a DATA_DIRECTORY
clause in the CREATE TABLE
statement. If you do consider switching to InnoDB, read about this feature here: https://dev.mysql.com/doc/refman/8.0/en/innodb-create-table-external.html#innodb-create-table-external-data-directory