mysqlrdbmsdatadirectory

Can a RDBMS have its datadir on another machine


I am playing with mysql and the command select @@datadir; has got me thinking.For someone like me without the means to have a dedicated server i am relegated to cheap vps's which are no good since once my disk space quota is consumed,there is no adjusting my quota upwards.

Since a new connection would be a new thread,i imagine it would be convinient to have some form of network multithreading with my datadir sitting at dropbox or google.is there a database system which allow one access a datadir across a network?.


Solution

  • The MySQL database requires a directory path.

    You could fool it to use NFS. However, be warned that "standard" linux NFS is not a very good solution: it introduces locks which may lead to lockdown of database (experienced).

    Otherwise some storage devices provide with their own NFS clients.

    Or you could use SAN/NAS/Whatever. I would further suggest that what you may be looking for is a separate storage device, not a separate "machine".