- 26 Sep 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Serverutil
- Updated on 26 Sep 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
This standalone configuration utility which is shipped with the Liquit Server product, can be used to register the local device as a new server within an existing Liquit Workspace database and to change the Server.json file.
There are several actions and parameters which you can combine:
setcredentials
The setcredentials
action is used to update the database or Windows service credentials and can be combined with the following options:
--database
- Update database credentials in Server.json.
--service
- Update Windows service credentials in Server.json and service.
--username
- Username to use, will be prompted to input if not specified.
--password
- Password to use, will be prompted to input if not specified.
Example: serverutil.exe setcredentials --username "sa_liquit" --database
update
The update
action is used to upgrade the database schema and can be combined with the following options:
--database
- Update database schema.
--validate
- Check if a supported upgrade path is available for the schema.
Example: serverutil.exe update --database --validate
register
The register
action is used to register local server within the database and can be combined with the following options:
--connectionString
- Database connection string to use; it will use Server.json if not specified.
--username
- Username to use; it will use credentials from Server.json if not specified.
--password
- Password to use; it will use credentials from Server.json if not specified.
--name
- Server name to use within Liquit; it will use hostname if not specified.
Example: serverutil.exe register --connectionString "Data Source=sql.liquit.com;Initial Catalog=Liquit;Integrated Security=False" --username "sa_liquit" --password "password"
config
The --config
option is used to customize a Server.json configuration file. For example, if you have a JSON in another, location you can specify the path to the JSON and use this option to test it. You can combine this option with any of the following options:
--database
- Update database credentials in Server.json.
--service
- Update Windows service credentials in Server.json and service.
--username
- Username to use, will be prompted to input if not specified.
--password
- Password to use, will be prompted to input if not specified.
--database
- Update database schema.
--validate
- Check if a supported upgrade path is available for the schema.
--connectionString
- Database connection string to use; it will use Server.json if not specified.
--username
- Username to use; it will use credentials from Server.json if not specified.
--password
- Password to use; it will use credentials from Server.json if not specified.
--name
- Server name to use within Liquit; it will use hostname if not specified.