How to change MySQL 8.0 data folder. Can I use OneDrive folders?
Even if you can use OneDrive (or similar product), I would expect it to be a disaster waiting to happen.  Neither MySQL nor XyzDrive is designed to worry about fast, real-time, actions.  So, I would expect any network hiccup, or drive hiccup, or long network delay, etc, to risk a serious "disk" error being returned to MySQL, necessitating a crash.

Also, MySQL is not prepared to have two instances talking to the same files.  Will you really disconnect from one computer before connecting another??  The day you fail to do that is the day the data is corrupted beyond repair.

Even if XyzDrive and MySQL decide to make it a viable feature, performance would probably suck -- somewhere between 10x and 100x slower than a local drive, and somewhat slower than a remote drive.

(If I am wrong, please speak up.)