Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MariaDB root user password section to docs #5498

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions docs/modules/databases/mariadb.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,11 @@

See [Database containers](./index.md) for documentation and usage that is common to all relational database container types.

## Usage example
## MariaDB `root` user password

Running MariaDB as a stand-in for in a test:

```java
public class SomeTest {

@Rule
public MariaDBContainer mariaDB = new MariaDBContainer();

@Test
public void someTestMethod() {
String url = mariaDB.getJdbcUrl();

... create a connection and run test as normal
```
If no custom password is specified, the container will use the default user password `test` for the `root` user as well.
When you specify a custom password for the database user,
this will also act as the password of the MariaDB `root` user automatically.

## Adding this module to your project dependencies

Expand Down