Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5542 - mysql start-up script has hard-coded path
Summary: mysql start-up script has hard-coded path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-24 22:19 UTC by Vadim Berezniker
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Berezniker 2002-07-24 22:19:11 UTC
if you manage to install mysql using the mysql ebuild and happen to have a
seperate data dir specified in your config file, then the init script will
refuse to run mysql saying that you don't have any databases installed. The
problem is that the default database path is hard-coded into the script.

sed -n '/^.*datadir.*/p' /path/to/config/file | awk '{ print $3 }'

should work ...
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-07-25 03:29:42 UTC
 Vadim: could you provide a patched init script?  It would save me some time.