Danny writes:
>
>I just upgraded to redhat 7.3 and am now having this problem when I
>try to read my /home/dwrice/.my.cnf file.
>
>perl -we 'use DBI;DBI->trace(2);my $dsn =
>"DBI:mysql:dwrice;mysql_read_default_group=client;mysql_read_default_file=$ENV{HOME}/.my.cnf";my
> $dbi = DBI->connect($dsn,undef,undef) || die $DBI::errstr;print "ref=$dbi\n"'
>
> DBI 1.21-nothread dispatch trace level set to 2
> ->
>DBI->connect(DBI:mysql:dwrice;mysql_read_default_group=client;mysql_read_default_file=/home/dwrice/.my.cnf,
> , ****)
> -> DBI->install_driver(mysql) for linux perl=5.006001 pid=3158 ruid=500 euid=500
> install_driver: DBD::mysql version 2.0419 loaded from
>/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBD/mysql.pm
> <- install_driver= DBI::dr=HASH(0x81019d0)
> -> default_user in DBD::_::dr for DBD::mysql::dr
>(DBI::dr=HASH(0x81019d0)~0x81435a4 undef undef HASH(0x818b560))
> <- default_user= ( undef undef ) [2 items] at DBI.pm line 468
> -> connect for DBD::mysql::dr (DBI::dr=HASH(0x81019d0)~0x81435a4
>'dwrice;mysql_read_default_group=client;mysql_read_default_file=/home/dwrice/.my.cnf'
>undef **** HASH(0x818b560))
>imp_dbh->connect: dsn =
>dwrice;mysql_read_default_group=client;mysql_read_default_file=/home/dwrice/.my.cnf,
>uid = , pwd =
>imp_dbh->MyLogin: dbname = dwrice, uid = NULL, pwd = NULL,host = NULL, port = NULL
>imp_dbh->MyConnect: host = NULL, port = 0, uid = NULL, pwd = NULL
>imp_dbh->MyConnect: Reading default file /home/dwrice/.my.cnf.
>imp_dbh->MyConnect: Using default group client.
>imp_dbh->MyConnect: client_flags = 0
>Segmentation fault
>
>My .my.cnf still works fine with the mysql client.
>
>I am using
>perl-5.6.1-34.99.6
>perl-DBI-1.21-1
>perl-DBD-MySQL-1.2219-6
>
>-Danny
I was running the default redhat 7.3 mysql-3.23.49-3 when the above
occurred. I replace 3.23.49-3 with the 4.0 alpha mysql MySQL-4.0.1-2
and this problem went away.
-Danny