Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207636 - mysql.eclass - less confusing warning about MY_DATADIR
Summary: mysql.eclass - less confusing warning about MY_DATADIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 01:28 UTC by Carlos Eduardo Santos
Modified: 2008-05-29 05:38 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 Carlos Eduardo Santos 2008-01-27 01:28:54 UTC
I read this:

 * MySQL MY_DATADIR is /var/lib/mysql
 * Previous datadir found, it's YOUR job to change
 * ownership and take care of it

And I'm wondering if /var/lib/mysql is ok, what is the previous datadir and what it should be, and what is the right ownership.

MySQL is working and I searched for other datadir but I didn't find it.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-27 01:32:06 UTC
This warning is intended and far from useless. It informs you that "YOUR job to change ownership and take care of it" and the ebuild won't touch the permissions or anything else in that dir, so if you permissions are incorrect e.g., they won't get fixed.

Comment 2 Carlos Eduardo Santos 2008-01-27 01:48:02 UTC
But it should at least show a link informing how to update the datadir and fix its permissions.

I've never touched these configurations and I have no idea why I'm getting this message.

But you wrote: "'if' you permissions are incorrect". Does it mean that my config can be right and it's just a message that everybody see regardless their configuration?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-27 01:54:13 UTC
(In reply to comment #2)
> I've never touched these configurations and I have no idea why I'm getting this
> message.

Because the directory already exists, so the message tells you the ebuild won't touch it. What's exactly so unclear about this?
Comment 4 Carlos Eduardo Santos 2008-01-28 17:04:20 UTC
Ok, I understand now. But the message made me think my configuration was wrong and that I had to change the datadir and its ownership.

Maybe a simpler message wouldn't frighten anybody, like:
"MySQL MY_DATADIR already found in /var/lib/mysql. I won't build a new one."

Thank you.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 17:27:48 UTC
Sounds good...
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-05-29 05:38:55 UTC
changed in CVS.