SymmetricDS requires a properties file with settings to connect to the database. The same properties can be used by the SymmetricDS service (sym_service), command line launcher (sym), administrative tools (symadmin), and utilities (dbexport, dbimport, dbfill).
By default, SymmetricDS will search the following locations for database properties:
|1||conf/symmetric.properties||Contains properties that apply to all engines. You would set database properties here when running in single-server mode. Most installations use multi-server mode and should use the properties file from the engines folder instead.|
|2||CLASSPATH:symmetric-override.properties||An override file applying to all engines that is found in a folder listed in the CLASSPATH environment variable.|
|3||engines/*.properties||In the engines folder, each property file contains properties for a specific instance of SymmetricDS.|
You can also specify which properties file should be used by passing command line options:
- Setting this option will specify the properties file to use for connecting to the database. If this option is not used, it will search for properties as described above.
- --engine name
- If you are running multiple engines in the same SymmetricDS server (called multi-server mode), then you can specify which engine to use. The engine name can be found as property "engine.name" in a properties file under the "engines" folder. It will match the engine name you specify and use that property file for connecting to the database.
The following properties are required for connecting to the database:
|db.driver||The class name for the JDBC driver|
|db.url||The JDBC URL that specifies the host, port, and database name to connect to|
|db.user||The user to connect as||db.password||The password for the user|
Here are some examples of the settings:
Many of the JDBC drivers are already included in the SymmetricDS download. If the driver is not included for your database, you will need to download it to the lib folder where SymmetricDS is installed.