There are multiple issues with running MedSavant Server on one machine, and the database on another. Such a configuration would be needed to scale the database to a multi-node cluster, for handling larger datasets.
The issues are as follows:
Both the DB and the server require access to tmp-dir. The DB requires it for dumping and re-loading tables, the server for it's own purposes. However, the presence of this folder is required on both the server and DB machines. Eliminating this dependency should sufficiently decouple the DB machine from the server machine.
Since we are accessing the DB over the network, and are piggy-backing on the DB user-management system, each user has to have permissions to be accessed over the network from any host, not just localhost. This is done by UPDATE mysql.user SET host = "%" WHERE user = "$USERNAME";.
There are multiple issues with running MedSavant Server on one machine, and the database on another. Such a configuration would be needed to scale the database to a multi-node cluster, for handling larger datasets.
The issues are as follows:
tmp-dir
. The DB requires it for dumping and re-loading tables, the server for it's own purposes. However, the presence of this folder is required on both the server and DB machines. Eliminating this dependency should sufficiently decouple the DB machine from the server machine.UPDATE mysql.user SET host = "%" WHERE user = "$USERNAME";
.