Help for this page

Select Code to Download


  1. or download this
    [root@pepe DBD-mysql-3.0002]# make test
    PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "
    +test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    ...
            This test requires a running server and write permissions.
            Please make sure your server is running and you have
            permissions, then retry.
    
  2. or download this
    
    mysql select * from user where user = 'root';
    ...
    +-----------+------+------------------+-------------+-------------+---
    +----------+-------------+-------------+-----------+-------------+----
    +-----------+--------------+-----------+------------+-----------------
    ++------------+------------+
    2 rows in set (0.11 sec)
    
  3. or download this
    #! /usr/bin/perl -w
    use strict;
    ...
    my @data_sources = DBI->data_sources('mysqlPP');
    print @data_sources,"\n";
    my $dbh  = DBI->connect('dbi::mysqlPP::test','','');
    
  4. or download this
    DBMExamplePFileProxySpongemysqlPP
     
    dbi:mysqlPP:
    Can't connect to data source mysqlPP::test, no database driver specifi
    +ed and DBI_DSN env var not set at huh.pl line 11