percona-discussion team mailing list archive
-
percona-discussion team
-
Mailing list archive
-
Message #00396
Re: [Bug 346056] Re: xtrabackup doesn't finds the config file in debian
Yasufumi,
But can't we make xtrabackup to accept --defaults-file=/etc/my.special.cnf
like all standard mysql utilities do ?
Yasufumi Kinoshita wrote:
> You can change the path in the
>
> mysys/default.c
>
> line
>
> errors += add_directory(alloc, "/etc/", dirs);
>
> to your favorite directories.
>
> We assume xtrabackup is build with the same source of the MySQL used.
>
> ** Changed in: percona-xtrabackup
> Importance: Undecided => Low
> Status: New => Won't Fix
>
--
Vadim Tkachenko, CTO
Percona Inc.
ICQ: 369-510-335, Skype: vadimtk153, Phone +1-888-401-3403
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.percona.com/
Attend the 2009 Percona Performance Conference
April 22-23 - http://conferences.percona.com/
--
xtrabackup doesn't finds the config file in debian
https://bugs.launchpad.net/bugs/346056
You received this bug notification because you are a member of Percona
developers, which is the registrant for Percona-XtraBackup.
Status in Open source backup tool for InnoDB and XtraDB: Won't Fix
Bug description:
I had to compile xtrabackup for 32 bits and I did so against MySQL 5.0.77 source. The problem? xtrabackup uses my_print_default_files() (libmysql/default.c) to look for config files. By default, the MySQL source looks for the config file in:
Default options are read from the following files in the given order:
/etc/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
Problem is that the deb mysql package puts the config file under /etc/mysql/my.cnf. So I guess that the tool should either do an extra check for that path or (more logically) add a cmd line flag to specify a config file (-c config_path).
Hope this helps :)
Alex
Follow ups
References