SYNOPSIS

use Testcontainers::Module::MySQL qw( mysql_container );

my $mysql = mysql_container();

my $host = $mysql->host;
my $port = $mysql->mapped_port('3306/tcp');
my $dsn  = $mysql->dsn;

$mysql->terminate;

DESCRIPTION

Pre-configured MySQL container module, equivalent to Go's testcontainers-go/modules/mysql.

Create and start a MySQL container.

Options: image, root_password, username, password, database, port, startup_timeout, name.

Returns a DBI-compatible DSN: dbi:mysql:database=...;host=...;port=...

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 81:

Unknown directive: =func

Around line 123:

Unknown directive: =method