I dont know whether this is possible or not, but what I want is, I want to install next cloud in my raspberry pi and I know how to install and I want to target the mysql database which is installed in a different server and I know how to do this as well, but my question is, I want to change the data directory to complete new server, for example, my raspberry pi has only 16gb memory card, so I have secondary linux server which contains 2TB of hard disk and also mysql is also installed in this 2TB server, so I want the data to be kept in this new 2TB server instead of raspberry. So is it possible?
Any help or suggestions is greatly appreciated....