List:General Discussion« Previous MessageNext Message »
From:Sinisa Milivojevic Date:March 11 2002 2:11pm
Subject:Re: bug: segfaults with mysql_read_default_group!
View as plain text  
Christian Hammers writes:
> Hello 
> 
> There is a problem with the myslq_read_default_group function!
> It's DBI 1.21, DBD::MySQL 1.2216 and mysql-3.23.49, compiled on the very
> latest Debian unstable (I'm the mysql maintainer of Debian).
> 
> bye,
> 
> -christian-
> 
> There is no section "ch" in /etc/mysql/my.cnf and no ~ch/.my.cnf. The same
> problem also occurs in mysqlhotcopy which looks for a section of this name.
> 
> $ cat t.pl
> #!/usr/bin/perl
> use DBI;
> $dbh = DBI->connect("dbi:mysql:test:mysql_read_default_group=ch","ch","");
> 
> $ ./t.pl
> ...
> open("/etc/mysql/my.cnf", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x40026000
> read(3, "# You can copy this to one of:\n#"..., 4096) = 1892
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0x40026000, 4096)                = 0
> open("/var/lib/mysql/my.cnf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
> file or directory)
> open("/home/ch/.my.cnf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
> directory)
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++
> 

Sorry, but, I could not trace the above code in mysqlhotcopy ....

This is the only code that I found in latest version of this program
that has anything to do with options :

my $dbh = DBI->connect("dbi:mysql:$dsn;mysql_read_default_group=mysqlhotcopy",
                        $opt{user}, $opt{password},


-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <sinisa@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com

Thread
Linking mySQL to websiteTR12 Apr
  • Re: Linking mySQL to websiteTomislav PETROVIC12 Apr
  • data types between mysql and oracle 8Jann Linder14 Jun
    • Re: data types between mysql and oracle 8sinisa14 Jun
  • Re: bug: segfaults with mysql_read_default_group!Sinisa Milivojevic11 Mar
Re: Linking mySQL to websiteJames Turinsky12 Apr