Revision: 45571
Updated Code
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
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
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