Summary: | dev-db/mysql-5.5.16: config/mysql_install_db fails (via `emerge --config`) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maurice Volaski <mvolaski> |
Component: | New packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug, doug, francoisvalenduc, grknight, kbonner, kfm, marco.dr, me, pasthelod, StormByte, thev00d00 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 413883 |
Description
Maurice Volaski
2011-11-29 07:06:54 UTC
5.5.18 from the overlay fails this as well. This also causes digikam to fail during configure. Can you poke the manual version more, perhaps with verbose? Other options to try: --force --skip-name-resolve --no-defaults seem to recall that 5.5 `mysql_upgrade` does not work if $PWD != /usr may be it's a problem with paths? The same with 5.5.19 (from tree): /usr/share/mysql/scripts/mysql_install_db FATAL ERROR: Could not find ./bin/my_print_defaults If you compiled from source, you need to run 'make install' to copy the software into the correct location ready for operation. If you are using a binary release, you must either be at the top level of the extracted archive, or pass the --basedir option pointing to that location. (In reply to comment #4) > The same with 5.5.19 (from tree): > /usr/share/mysql/scripts/mysql_install_db > > FATAL ERROR: Could not find ./bin/my_print_defaults > > If you compiled from source, you need to run 'make install' to > copy the software into the correct location ready for operation. > > If you are using a binary release, you must either be at the top > level of the extracted archive, or pass the --basedir option > pointing to that location. I just stumbled across this error in dev-db/mysql-5.5.16 and 5.5.19; the ebuild doesn't seem to install mysql_install_db in /usr/bin, it's present in /usr/share/mysql/scripts/ though. The emerge --config command fails, but I ran /usr/share/mysql/mysql_install_db --basedir=/usr --user=mysql, and it does work. This bug still applies to =dev-db/mysql-5.5.22-r1 The workaround mentioned in comment #5 works (mysql-5.5.22-r1). Complete command with correct path: /usr/share/mysql/scripts/mysql_install_db --basedir=/usr --user=mysql Thanks for the workaround, i'll try that. Just confirmed bug is still present in mariadb-5.5.23 (In reply to comment #7) > The workaround mentioned in comment #5 works (mysql-5.5.22-r1). > Complete command with correct path: > > /usr/share/mysql/scripts/mysql_install_db --basedir=/usr --user=mysql A better solution may be to add the following to my.cnf on install: [mysql_install_db] basedir={$EPREFIX}/usr This bug still occurs with mysql 5.5.27. Why is the status not changed to confirmed. Fixed in CVS now. |