Can it be installed on two different servers and share the same database installed in one of them?
It can, but it won't work as you probably want. Traccar has internal cache, so two servers will be out of sync very quickly.
ok anton would only change the config and point to the server where the database is
Can it be installed on two different servers and share the same database installed in one of them?