xtrabackup doesn't finds the config file in debian

Bug #346056 reported by Alex Barrera
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Won't Fix
Low
Unassigned

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

Revision history for this message
Yasufumi Kinoshita (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
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote : 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/

Revision history for this message
Alex Barrera (abarrera-inkzee) wrote :

Yeah I know I can edit that line, but the problem is that if you distribute binaries of the tool not everyone will be happy with my choices ;)

I think what Vadim suggests is a much flexible solution :)

Alex

Percona (percona-team)
Changed in percona-xtrabackup:
status: Won't Fix → Confirmed
Revision history for this message
Peter Zaitsev (pz-percona) wrote : Re[2]: [Percona-discussion] [Bug 346056] Re: xtrabackup doesn't finds the config file in debian

Vadim,

Yeah this is right way to do it.

xtrabackup should have same look and feel as other MySQL utilities -
command line options are same as config file lines; config file can
be specified.

Tuesday, March 24, 2009, 12:14:11 AM, you wrote:

> Yasufumi,

> But can't we make xtrabackup to accept
> --defaults-file=/etc/my.special.cnf
> like all standard mysql utilities do ?

--
Peter Zaitsev, CEO, Percona Inc.
Tel: +1 888 401 3401 ext 501 Skype: peter_zaitsev
24/7 Emergency Line +1 888 401 3401 ext 911
Attend the 2009 Percona Performance Conf
Apr 22-23 http://conferences.percona.com/

Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :

Peter, Vadim,

xtrabackup has same look and feel as other MySQL utilities already.
It uses libmysys.a.

Of course, xtrabackup accept --defaults-file=# option now...

Revision history for this message
Peter Zaitsev (pz-percona) wrote : Re: [Percona-discussion] [Bug 346056] Re: xtrabackup doesn't finds the config file in debian

Yasufumi,

OK thanks :)

Tuesday, March 24, 2009, 5:10:12 PM, you wrote:

> Peter, Vadim,

> xtrabackup has same look and feel as other MySQL utilities already.
> It uses libmysys.a.

> Of course, xtrabackup accept --defaults-file=# option now...

--
Peter Zaitsev, CEO, Percona Inc.
Tel: +1 888 401 3401 ext 501 Skype: peter_zaitsev
24/7 Emergency Line +1 888 401 3401 ext 911
Attend the 2009 Percona Performance Conf
Apr 22-23 http://conferences.percona.com/

Changed in percona-xtrabackup:
status: Confirmed → Won't Fix
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

Yasufumi,

but innobackupex does not understand --defaults-file

Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-801

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.