[Solved] mySQL InnoDB tablespace move to network drive

wistlo Asks: mySQL InnoDB tablespace move to network drive
In Windows 10 with mySQL 8.0.26, I am seeking to move a set of rarely used but occasionally necessary tables from my working SSD to another physical device with more space.

I have attempted to move the schema holding these tables using this procedure, but in Windows instead of Ubuntu.

The devices available are either shared SMB drives over WAN connections or a local PC on the same LAN.

The latter (local PC) is my preferred choice, as WAN-connections would much slower.

I can use the DATA DIRECTORY directive and that procedure to successfully move a schema to a different known directory on my default (C:) drive. I have the local LAN drive shared as D:, but I get errors when I attempt to access it for table creation:

10 [ERROR] [MY-012611] [InnoDB] Operating system error number 3 in a file operation.
10 [ERROR] [MY-012612] [InnoDB] The error means the system cannot find the path specified. It might be too long or it might not exist.
8 [ERROR] [MY-012646] [InnoDB] File \ 'CreateDirectory' returned OS error 261.

I understand the caveat that tablespaces on network drives, even local, will be significantly slower to process operations. But I would like to open up more space on the local SSD without having to restore dumps to use these tables on occasion.

I’ve tried using the drive letter, UNC file string, but none have worked.

Most of the documentation for moving tablespaces is (understandably) in the Linux OS. I’m using mySQL not as a server but as a data analysis tool, and I have to be in Windows.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.