Bug #4986 MySQL 5.0.2's mysql_install_db script doesn't get --prefix knowledge
Submitted: 11 Aug 2004 0:42 Modified: 16 Sep 2004 17:13
Reporter: Jeremy Zawodny Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:5.0.2 OS:Any Unix
Assigned to: Assigned Account CPU Architecture:Any

[11 Aug 2004 0:42] Jeremy Zawodny
When I build and install 5.0.2 from bitkeeper like this:

./configure --prefix=/home/mysql
make install

And then try to init the database by doing this:

cd /home/mysql

I get this error:

Could not find help file 'fill_help_tables.sql' in /usr/local/share/mysql or inside /usr/local.

That file clearly resides in /home/mysql/share/mysql since I specified a /home/mysql prefix at build time.

How to repeat:
./configure --prefix=/home/mysql
make install

cd /home/mysql

Suggested fix:
Make mysql_install_db aware of the any --prefix the user specified instead of assuming only the default values.
[12 Aug 2004 20:46] Hartmut Holzgraefe
I tried clean builds of both 5.0.1 and latest bitkeeper tree
and both wirk fine. I also looked into the mysql_install_db.sh
but couldn't find anything hardcoded or wrongly set in it.

I can only assume that your installation was either confused 
by a previous one or by a previous configure run?
[14 Feb 2005 22:54] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[17 Jan 2007 15:18] Frederic linot
I confirm the problem is due to a confused installation.

To solve the problem, do a make clean :

make clean
make install