[MDEV-3223] LP:888780 - errmsg.sys in the wrong place Created: 2011-11-10  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Luke Scott (Inactive) Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug888780.xml    

 Description   

I'm running this:

SERVER=/Users/Nathan/Server
SOFTWARE=$SERVER/software
CC="gcc --pipe" CFLAGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -mtune=native -m64 -O3 -fno-omit-frame-pointer " CXX="g++" CXXFLAGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -m64 -O3 -fno-omit-frame-pointer " CXXLDFLAGS="" ./configure --prefix=$SOFTWARE --datadir=$SERVER/data --sysconfdir=$SERVER/conf --with-unix-socket-path=$SERVER/tmp/mysql.sock --with-mysqld-user=$(whoami) --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-plugin-aria --with-aria-tmp-tables --without-plugin-innodb_plugin --with-mysqld-ldflags=-static --with-client-ldflags=-static --with-readline --with-ssl --with-plugins=max --with-embedded-server --with-libevent --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-zlib-dir=bundled --enable-local-infile
make -j 6
make install

And the aclocal and mysql directory are ending up in my datadir, even though they should be in my share directory (/Users/Nathan/Server/software/share).

At least mysql_install_db is looking for it there. Everything else seems to look for it in my data directory.



 Comments   
Comment by Luke Scott (Inactive) [ 2011-11-16 ]

Re: errmsg.sys in the wrong place
I figured out what's wrong... The data directory is configured with -localstatedir not --datadir... which is confusing because I think "datadir" in my.cnf and "-datadir" everywhere else (other than ./configure) refers to the database directory. This goes all the way back to MySQL, so this is likely bogus.

Comment by Michael Widenius [ 2012-01-12 ]

Re: errmsg.sys in the wrong place
In configure, the standard meaning of --datadir is:
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]

Which doesn't match MySQL's definition of datadir (data for databases)
That's why we always used --localstatedir for where databases are.

On the other hand, using 'mysqld --localstatedir=directory-for-your-data' would also be very strange...

Comment by Rasmus Johansson (Inactive) [ 2012-01-12 ]

Launchpad bug id: 888780

Generated at Thu Feb 08 06:47:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.