Skip to content

Commit

Permalink
Add documentation for TC_DAEMON parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
inikolaev committed Jun 7, 2017
1 parent 3b7830b commit 27d7ef7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/usage/database_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ public class JDBCDriverTest {
...
```

#### Running container in daemon mode

By default database container is being stopped as soon as last connection is closed. There are cases when you might need to start container and keep it running till you stop it explicitly or JVM is shutdown. To do this, add `TC_DAEMON` parameter to the URL as follows:

`jdbc:tc:mysql://hostname/databasename?TC_DAEMON=true`

With this parameter database container will keep running even when there're no open connections.
#### Overriding MySQL my.cnf settings
For MySQL databases, it is possible to override configuration settings using resources on the classpath. Assuming `somepath/mysql_conf_override`
Expand Down

0 comments on commit 27d7ef7

Please sign in to comment.