Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510652 - [mysql-overlay] dev-db/percona-server: emerge --config doesn't respect changed datadir
Summary: [mysql-overlay] dev-db/percona-server: emerge --config doesn't respect change...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-18 14:21 UTC by Thomas Deutschmann (RETIRED)
Modified: 2014-05-18 14:35 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 Thomas Deutschmann (RETIRED) gentoo-dev 2014-05-18 14:21:06 UTC
Hi,

you cannot initialize another "datadir" besides the default "/var/lib/mysql" location with "emerge --config percona-server".



Reproducible: Always

Steps to Reproduce:
1. Start with a fresh system (e.g. no /var/lib/mysql)

2. Install dev-db/percona-server (as of writing, current version is 5.6.17.65.0), "emerge -av percona-server", from the mysql-overlay.

3. Now edit "/etc/mysql/my.cnf" and change "datadir" from "/var/lib/mysql" to "/srv/mysql"

4. Finally run "emerge --config percona-server" to initialize percona-server in "/srv/mysql".
Actual Results:  
# emerge --config percona-server


Configuring pkg...

 * MySQL MY_DATADIR has changed
 * from /var/lib/mysql
 * to /srv/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
    >
 * Creating the mysql database and setting proper
 * permissions on it ...
 * Command: '/usr/share/mysql/scripts/mysql_install_db' '--basedir=/usr' --log-warnings=0 --loose-skip-grant-tables --lo
ose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-
skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-upd
ates --user=mysql '--datadir=///var/lib/mysql'
 * Starting mysqld ...
 * Command //usr/sbin/mysqld            --log-warnings=0 --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-
name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-l
og --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --user=mysql               -
-user=mysql             --log-warnings=0                --basedir=//usr                 --datadir=///var/lib/mysql     -
-max_allowed_packet=8M          --net_buffer_length=16K                 --default-storage-engine=MyISAM                -
-socket=//var/run/mysqld/mysqld1438.sock                --pid-file=//var/run/mysqld/mysqld26845.pid
.2014-05-18 16:06:12 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for
_timestamp server option (see documentation for more details).  

 * Setting root password ...                                                                                     [ ok ]
 * Loading "zoneinfo", this step may require a few seconds ... ...
Warning: Using a password on the command line interface can be insecure.                                         [ ok ]
 * Stopping the server ...
 * Done



...this looks like the config script is detecting the changed datadir dir. But in the end it will initialize "/var/lib/mysql"...

Expected Results:  
I expected to initialize percona-server with "/srv/mysql" as datadir.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2014-05-18 14:35:41 UTC
Forget it. Eclasses weren't in sync.