Bug #42421 mysql_install_db.pl not relocatable on Windows
Submitted: 28 Jan 2009 13:56 Modified: 28 Mar 2014 20:32
Reporter: Jon Stephens Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:5.1-telco-6.4-win OS:Windows (WinXP Pro)
Assigned to: Kent Boortz CPU Architecture:Any

[28 Jan 2009 13:56] Jon Stephens
Description:
It is not possible to run mysql_install_db.pl in a location other than C:\Program Files\MySQL Server 5.1\bin. When I attempt to do so, script complains that it can't find C:\Program Files\MySQL Server 5.1\bin\my_print_defaults.

Also, make_win_bin_dist does not package this script - I had to copy it manually to C:\mysql\bin.

How to repeat:
See Description.

Suggested fix:
Either fix mysql_install_db.pl and make sure that make_win_bin_dist includes it along with any dependencies. 

Or possibly fix /netware/mysql_install_db.c so that it's built for Windows and included by make_win_bin_dist, so Windows source installation would not be dependent on having Perl (and maybe cygwin as well?).
[27 Mar 2014 14:11] Laurynas Biveinis
Is the bug status correct?

5.5$ bzr log -r 4591 -n0
------------------------------------------------------------
revno: 4591
committer: Kent Boortz <kent.boortz@oracle.com>
branch nick: mysql-5.5
timestamp: Mon 2014-02-03 16:04:44 +0100
message:
  Bug#11751526 / Bug#42421 - MYSQL_INSTALL_DB.PL NOT RELOCATABLE ON WINDOWS
    Corrected how to find "resolveip"
[28 Mar 2014 20:32] Paul DuBois
Noted in 5.5.37, 5.6.17, 5.7.4 changelogs.

On Windows, mysql_install_db.pl could be run only from within the bin
directory under the installation directory.