in reply to Pointing DBI::DBD::mysql at right socket.
People usually use the short form "DBI:mysql:$database", but that won't work in your case.$dsn = "DBI:mysql:database=$database;host=$hostname;port=$port"; $dbh = DBI->connect($dsn, $user, $password);
The port number is still optional.
More options still are listed under the heading "connect".
|
|---|