Skip to content

Lesson 125: testcontainers problem #41

@professorxuk

Description

@professorxuk

problem running the test, I found that the mysql container could not be connected to with the output showing errors, including "Connection refused: getsockopt"
mysql 9.3.0 was being pulled which seems to have a problem

mysql 9.1.0 in lecture currently

source: github testcontainers-java issue 10184
The solution was to specify mysql 8 rather than 9. Literally one character change in MySqlTest (later MySqlIT) line 28 :)
Better yet use "mysql:lts"

I was using podman (running on WSL2 in my case) rather than Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions