++ed by:
KOSTYA

1 PAUSE user
2 non-PAUSE users.

kostya

SYNOPSIS

    my %config = (
            user=>'root',
            password=>undef,
            server=>[
                    {dsn=>'database=test;host=localhost;port=3306;mysql_connect_timeout=5;', type=>'master'},
                    {dsn=>'database=test;host=localhost;port=3306;mysql_connect_timeout=5;', type=>'slave'},
                    {dsn=>'database=test;host=localhost;port=3306;mysql_connect_timeout=5;', id=>1, type=>'master'},
                    {dsn=>'database=test;host=localhost;port=3306;mysql_connect_timeout=5;', id=>1, type=>'slave'},
                    {dsn=>'database=test;host=localhost;port=3306;mysql_connect_timeout=5;', id=>2, type=>'master'},
                    {dsn=>'database=test;host=localhost;port=3306;mysql_connect_timeout=5;', id=>2, type=>'slave'},
            ]
    );

    # Mojolicious
    $self->plugin('Mysql'=>\%config);

    # Mojolicious::Lite
    plugin 'Mysql' => \%config;

HELPERS

mysql

    $app->mysql;

Return MojoX::Mysql object.