Hi, I'm having troubles using the DBI::connect method when I attempt to include mysql_read_default_file." I get a segmentation fault when I attempt to connect with this option set to read my $HOME/.my.cnf file but all works fine without this option. It's a simple snipet of code:
$dbUser = ""; # I also tried undef instead of empty strings. $dbPass = ""; $dsn = "DBI:mysql:samp_db"; $dsn .= ";mysql_read_default_file=/home/gthompsn/.my.cnf"; $dbHandle = DBI->connect($dsn, $dbUser, $dbPass); and here is $HOME/.my.cnf: [client] user = gthompsn password = secret_password I want a multitude of Perl scripts to gain access to the DB without hard-coded user/passwd variables in each script. The .my.cnf file has proper permissions (600) so that's not an issue. I've tried on both Debian (potato) and Red Hat 7.3 systems and the former causes a segmentation fault while the latter produces a core dump. Any help is GREATLY APPRECIATED! -- +--------------------------------------------------------------+ | Greg Thompson http://www.rap.ucar.edu/~gthompsn/ | | Research Applications Program | | (303) 497-2805 National Center for Atmospheric Research | | (fax) -8401 P.O. Box 3000 Boulder, CO 80307-3000 | +--------------------------------------------------------------+