bfdi533 has asked for the wisdom of the Perl Monks concerning the following question:
And the output is:#!perl.exe use strict; use warnings; use Win32::OLE; use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Outlook'; use DBI(); my $dbhost = '1.2.3.4'; my $dbuser = 'user'; my $dbdb = 'ssis'; my $dsn = "DBI:mysql:database=$dbdb;host=$dbhost"; my $dbh; print "Connecting to DB ...\n"; print "dsn: $dsn\n"; $dbh = DBI->connect($dsn,$dbuser,'') or die "couldn't connect to $dbho +st: " . DBI->errstr . "\n"; print "Done with DB connection\n";
C:\Data\Scripts\Exchange>mysql_connect.pl Connecting to DB ... dsn: DBI:mysql:database=ssis;host=1.2.3.4 C:\Data\Scripts\Exchange>
update: Just tried this for kicks with a different and unauthorized username and it behaves in exactly the same way as it does with a correct and authorized username?!
Any thoughts as to why this just dies without the error message and without printing the text after the connect code?
Ed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: connecting to Mysql from Win32
by mbeast (Beadle) on Oct 22, 2004 at 17:45 UTC | |
by bfdi533 (Friar) on Oct 22, 2004 at 18:05 UTC | |
|
Re: connecting to Mysql from Win32
by bfdi533 (Friar) on Oct 22, 2004 at 18:20 UTC | |
by tachyon (Chancellor) on Oct 22, 2004 at 23:17 UTC | |
|
Re: connecting to Mysql from Win32
by jdtoronto (Prior) on Oct 22, 2004 at 17:40 UTC | |
by ikegami (Patriarch) on Oct 22, 2004 at 17:56 UTC | |
by terra incognita (Pilgrim) on Oct 22, 2004 at 18:03 UTC | |
by bfdi533 (Friar) on Oct 22, 2004 at 18:12 UTC | |
by terra incognita (Pilgrim) on Oct 22, 2004 at 18:23 UTC | |
| |
|
Re: connecting to Mysql from Win32
by PodMaster (Abbot) on Oct 23, 2004 at 09:05 UTC |