Hello,
I installed JDK & JRE, and it appears as though I was successfully able to install the DBD::JDBC module from CPAN.
However, when I run the following code, I receive an error:
use strict;
use DBI;
use DBD::JDBC;
my $host = "query.comcast.com";
my $port = 4443;
my $user = "pmalle001";
my $password = "xxxxx";
my $url = "jdbc:trino://query.comcast.com:4443/default";
my $row;
my $dbh = DBI->connect( "dbi:JDBC:hostname=query.comcast.com;port=4443;url=jdbc:trino://query.comcast.com:4443/default",$user,$password ) or die print $DBI::errstr;
*********************
ERROR BEGINNING
DBI connect('hostname=query.comcast.com;port=4443;url=jdbc:trino://query.comcast.com:4443/default','pmalle001',...) failed: I/O Error at JDBC-ConnectionTestNewer.pl line 19.
1 at JDBC-ConnectionTestNewer.pl line 19.
I/O Error
ERROR END
*****************************
It is odd, because with DBEAVER,
using the following credentials - which are the same, I can connect fine to DBEAVER
JDBC URL: jdbc:trino://query.comcast.com:4443/default
Host: query.comcast.com
Port: 4443
Database/schema: default
Username: pMalle001
Password: xxxxx
Does JDBC require anything else in order to connect to JDBC maybe? Not sure why I'd be getting the "ailed: I/O Error"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.