Using Client/Server? How-to
Hi,
I am using BaseX to store certains documents. Till now as the DB was small, I alone was able to handle it ie.; check, modify etc etc. operations.
Now the documents are in tons and I have kept 2 guys to work on the same, with proper training, I need to have a client-server setup.
I have gone through the Database Server wiki. Being new to this kind of environment, I have few questions, might be quite basic, but strange to me :)
As far as I know and have understood what I will have to do is -
1. I will have to keep the DB on a server with proper networking so that the clients can access the DB. 2. I will have to change the DB path on clients (in Preferences) and it would be the Server's path. 3. Instead of running the stand-alone, I will have to start Server and on clients, the BaseX Client.
So far, I haven't tried this, as any mistake on my part or of employees' might damage the DB.
I need a proper guidance to start with it.
Regs Pratik
Hi Pratik,
Quoted text · Pratik Kharwade · 2 lines
> 1. I will have to keep the DB on a server with proper networking so that > the clients can access the DB.
Yes.
Quoted text · Pratik Kharwade · 2 lines
> 2. I will have to change the DB path on clients (in Preferences) and it > would be the Server's path.
No. Your client will connect to the server and from then on access to the data will be handled by your clients.
Quoted text · Pratik Kharwade · 2 lines
> 3. Instead of running the stand-alone, I will have to start Server and on > clients, the BaseX Client.
Yes. So you will have to start your server at a machine with IP address X. Using linux (similar on windows) you can do so by running ./basexserver
It will run on the BaseX standard port 1984. Your clients can not connect to the server by issueing ./basexclient -n X -p 1984
Quoted text · Pratik Kharwade · 3 lines
> > So far, I haven't tried this, as any mistake on my part or of employees' > might damage the DB.
You might want to do a Backup (see https://docs.basex.org/wiki/Backups for more information).
Cheers, Dirk
Written for BaseX 7.8. BaseX may have changed since: please check the current documentation.