Help for this page

Select Code to Download


  1. or download this
    my $dbh=DBI->connect('dbi:mysql:dbname'
            . ';host=127.0.0.1'
            . ';port=3310',
    'user', 'password');
    
  2. or download this
    my $dbh=DBI->connect('dbi:mysql:dbname'
            . ';host=localhost'
            . ';mysql_socket=/var/mysql4.1.9/mysql.sock',
    'user', 'password');
    
  3. or download this
    SET PASSWORD=OLD_PASSWORD('yoursecretpassword');