Bug #57062 mysql_install_db can't find my_print_defaults
Submitted: 28 Sep 2010 10:36 Modified: 15 Oct 2012 14:33
Reporter: Susanne Ebrecht Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:NEXT, 5.6.99 OS:Any
Assigned to: CPU Architecture:Any
Tags: regression

[28 Sep 2010 10:36] Susanne Ebrecht
Description:
bzr tree mysql-next revision 3195

$ make
$ make install

$ mkdir /PATH_of_install_dir/etc
$ cd /PATH_of_install_dir/etc
$ vi my.cnf

Create a my.cnf with given basedir and given datadir

$ ./scripts/mysql_install_db --defaults-file=/PATH_of_install_dir/etc/my.cnf

FATAL ERROR: Could not find ./bin/my_print_defaults

$ ls ./bin
...
my_print_defaults
...

$ less ./scripts/mysql_install_db

print_defaults="$builddir/extra/my_print_defaults"

This looks like it's searching in PATH/extra but the error message says it should be in ./bin and it's in bin.

How to repeat:
See above
[28 Sep 2010 10:37] Susanne Ebrecht
The workaround is to run ./bin/my_print_defaults before running mysql_install_db
[29 Sep 2010 10:39] Susanne Ebrecht
Bug #55530 was set as duplicate of this bug here.
[17 May 2011 13:20] Daniƫl van Eeden
This seems to be a duplicate of Bug #34981 which has a patch.