[nylug-talk] Is there a general best practice location to install mysql?
Chris Knadle
Chris.Knadle at coredump.us
Thu Oct 4 18:32:36 EDT 2007
On Thursday 04 October 2007, Brandorr wrote:
> I am compiling it and want to match any typical filesystem locations
> for installation.
>
> Do I install in / ? Or in /usr or in /usr/mysql5 or in /usr/mysql/5.0 ??
Browsing through the Filesystem Hierarchy Standards will answer the crux of
this question:
http://www.pathname.com/fhs/
Or, alternatively, you could download an RPM or a DEB of MySQL and open it
up to find out where the package installs the various MySQL files. That
isn't that difficult. DEB packages can be directly decompressed with 'ar',
too, and after opening that, there's a duplicate directory structure of where
files are put on the actual system.
If you have access to a Debian-like system, you don't even have to
decompress the DEB package to examine that hirearchy; 'dpkg -c <package>'
will list it all out.
However; just like the first responder asked -- if the system you're
installing MySQL on has any kind of package management, it's really best to
use it and install a MySQL package for your distribution. For many of
reasons.
-- Chris
--
Chris Knadle
Chris.Knadle at coredump.us
More information about the nylug-talk
mailing list