- or download this
/tmp>env - perl -MDBI -e 'DBI->connect("DBD:MariaDB","","",{PrintError
+=>1})'
Can't connect to data source 'DBD:MariaDB' because I can't work out wh
+at driver to use (it doesn't seem to contain a 'dbi:driver:' prefix a
+nd the DBI_DRIVER env var is not set) at -e line 1.
- or download this
$dbh = DBI->connect($data_source, $user, $pass, $driver);
- or download this
/tmp>env - DBI_DRIVER=NON::SENSE perl -MDBI -e 'DBI->connect("DBD:Mari
+aDB","","",{PrintError=>1})'
install_driver(NON::SENSE) failed: Can't locate DBD/NON/SENSE.pm in @I
+NC (you may need to install the DBD::NON::SENSE module) (@INC contain
+s: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/ven
+dor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/per
+l5 .) at (eval 5) line 3.
Perhaps a module that DBD::NON::SENSE requires hasn't been fully insta
+lled
at -e line 1.
- or download this
/tmp>env - perl -MDBI -e 'print DBI->connect("dbi:SQLite:foo","","",{P
+rintError=>1})->{PrintError}'
1
...
1
/tmp>env - DBI_DRIVER=SQLite perl -MDBI -e 'print DBI->connect("DBD:Ma
+riaDB:foo","","",{})->{PrintError}'
1
- or download this
/tmp>env - perl -MDBI -e 'print DBI->connect("DBD:MariaDB:foo","","","
+SQLite")->{PrintError}'
DBI->connect using 'old-style' syntax is deprecated and will be an err
+or in future versions at -e line 1.
...
/tmp>env - perl -MDBI -e 'print DBI->connect("DBD:MariaDB:foo","","","
+SQLite")->{PrintError}+0'
DBI->connect using 'old-style' syntax is deprecated and will be an err
+or in future versions at -e line 1.
0
- or download this
/tmp>env - perl -MDBI -e 'print DBI->connect("DBD:MariaDB:foo","","")'
Can't connect to data source 'DBD:MariaDB:foo' because I can't work ou
+t what driver to use (it doesn't seem to contain a 'dbi:driver:' pref
+ix and the DBI_DRIVER env var is not set) at -e line 1.
- or download this
/tmp>perl -MDBI -e 'print $DBI::VERSION'
1.636