Skip to content

Make it easier to connect to a local socket #111

@dirkx

Description

@dirkx

Currently it is a bit hard to default to a socket connection (e.g. if he DB is local and not TCP reachable).

Below change to line 776 makes this easier.

Ta!

    my $dsn = "DBI:$dbtype:database=$dbname";
    $dsn .= ";host=$dbhost" if length($dbhost);
    $dsn .= ";port=$dbport" if length($dbport);

    my $dbh = DBI->connect($dsn,$dbuser, $dbpass)
            or die "$scriptname: Cannot connect to database\n";

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions