Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491084 - =dev-db/mysql-5.5.32's `emerge --config` fails after datadir change in my.cnf
Summary: =dev-db/mysql-5.5.32's `emerge --config` fails after datadir change in my.cnf
Status: RESOLVED DUPLICATE of bug 453480
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-12 14:38 UTC by tazinblack
Modified: 2013-11-12 23:29 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 tazinblack 2013-11-12 14:38:29 UTC
After change of datadir in /etc/mysql/my.cnf it's not possible to install the initial database:

emerge --config mysql


Configuring pkg...

 * MySQL MY_DATADIR has changed
 * from /var/lib/mysql
 * to /data/mysql
 * Please provide a password for the mysql 'root' user now, in the
 * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file.
 * Avoid ["'\_%] characters in the password
    >
 * Retype the password
    >
 * Command: '/usr/share/mysql/scripts/mysql_install_db' '--basedir=/usr' --log-warnings=0 --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-innodb --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --user=mysql
 * ERROR: dev-db/mysql-5.5.32::gentoo failed (config phase):
 *   MySQL databases not installed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_config
 *   environment, line 3490:  Called mysql-v2_pkg_config
 *   environment, line 3144:  Called die
 * The specific snippet of code:
 *       [[ -f "${ROOT}/${MY_DATADIR}/mysql/user.frm" ]] || die "MySQL databases not installed";
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.5.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.5.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.5.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.5.32/temp/environment'.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/dev-db/mysql-5.5.32/work/mysql-5.5.32'




Reproducible: Always

Steps to Reproduce:
1. change datadir to somewhere else
2. emerge --config mysql
3. 
Actual Results:  
emerge fails like shown above

Expected Results:  
Install of the initial database

Looks like this is still the same as in bug 453480 I think.
Can I help something to fix this?
Are all others running there mysql dbs under /var/lib/mysql?
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-12 23:29:12 UTC
Yes, they appear the same; don't worry about it being filed as a duplicate, the maintainers will be informed about this and thus are reminded to look into.

*** This bug has been marked as a duplicate of bug 453480 ***