Return to Snippet

Revision: 45571
at June 2, 2011 06:48 by alfirth


Updated Code
my $dsn = "dbi:mysql:$db_name:$db_server:$db_port;mysql_socket=/san01/mysql/data1/mysql.sock";
my $dbh = DBI->connect($dsn, $db_user, $db_pass) or die "Unable to connect: $DBI::errstr\n";
my $qry = $dbh->prepare($query);
$qry->execute();

Revision: 45570
at May 4, 2011 05:44 by alfirth


Initial Code
my $dsn = dbi:mysql:$db_name:$db_server:$db_port;mysql_socket=/san01/mysql/data1/mysql.sock";
my $dbh = DBI->connect($dsn, $db_user, $db_pass) or die "Unable to connect: $DBI::errstr\n";
my $qry = $dbh->prepare($query);
$qry->execute();

Initial URL

                                

Initial Description

                                

Initial Title
connect to mysql using a different socket

Initial Tags
mysql

Initial Language
Perl